/* Final UGT site design approved by Kam, 30 October 2026.
   Preserve this visual baseline unless Kam requests a design change.
   Approval and reference snapshot: owning UGT workspace PLAN.md,
   "Final website design approval, 30 October 2026". */
@import url("/brand.css");
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  color: inherit;
}
button svg,
a svg,
summary svg {
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--red-text);
  outline-offset: 5px;
}
/* On the red, a red ring would vanish: the ring takes the red's own ink */
.entry-action :focus-visible {
  outline-color: var(--on-red);
}
/* except the button inside the field, whose ring sits on the field's paper */
.repo-input .button:focus-visible {
  outline-color: var(--ink);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
::selection {
  color: var(--paper);
  background: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 15px;
}
.skip-link:focus {
  top: 12px;
}
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
.experience {
  background: var(--red);
  max-width: 1800px;
  margin: auto;
  position: relative;
  overflow: clip;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px var(--gutter) 24px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.brand {
  display: block;
  width: 156px;
  line-height: 0;
}
.brand img {
  width: 100%;
  height: auto;
}
.site-header nav,
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.site-header nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 14px;
}
.icon-button {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.icon-button:hover {
  background: var(--soft);
}
.surface {
  position: relative;
  width: 88%;
  background: var(--paper);
  border-bottom-right-radius: clamp(110px, 18vw, 280px);
  padding: clamp(34px, 5vw, 76px) var(--gutter) 66px;
  min-height: 370px;
}
.surface:before {
  content: "";
  position: absolute;
  right: -13.64%;
  top: 0;
  width: 13.64%;
  height: 70px;
  background: var(--paper);
  border-bottom-left-radius: 100%;
  pointer-events: none;
}
.entry-copy h1 {
  font-size: clamp(46px, 6.25vw, 96px);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1.04;
  max-width: 1000px;
}
.entry-copy h1 > span {
  display: block;
}
.entry-copy .red-type {
  color: var(--red-text);
  margin-top: 3px;
  white-space: nowrap;
}
.intro-note {
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 24px;
}
.entry-action {
  padding: 30px var(--gutter) 55px;
  color: var(--on-red);
}
.entry-action > form {
  max-width: 1220px;
}
.entry-action label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.11em;
  margin: 0 0 12px 27px;
}
.repo-input {
  display: flex;
  align-items: center;
  background: var(--paper);
  border-radius: 100px;
  padding: 6px 6px 6px 28px;
  gap: 20px;
  color: var(--ink);
  min-height: 82px;
}
.repo-symbol {
  display: flex;
  flex: 0 0 28px;
}
.repo-symbol svg {
  width: 100%;
  height: auto;
}
.repo-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 15px 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 25px);
  outline: none;
}
.repo-input:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.repo-input input:focus-visible {
  outline: none;
}
.repo-input input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 58px;
  border-radius: 50px;
  padding: 16px 27px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 550;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.18s ease-out,
    background 0.18s ease-out;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.button:active:not(:disabled) {
  transform: translateY(0);
}
.repo-input .button {
  min-height: 68px;
  padding-inline: 33px;
  background: oklch(19% 0.008 35);
  color: oklch(98% 0.008 77);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1220px;
  margin: 19px 22px 0;
  font-size: 13px;
  line-height: 1.5;
}
.entry-foot .text-button {
  font-weight: 600;
  white-space: nowrap;
}
.repo-progress:empty {
  display: none;
}
.repo-progress {
  margin: 16px 25px 0;
  font-size: 15px;
}
.field-error {
  font-size: 15px;
  line-height: 1.5;
  margin: 17px 0 8px;
  max-width: 70ch;
}
.entry-action .field-error {
  margin-left: 25px;
}
.entry-action #continue-unchecked {
  margin-left: 25px;
  font-weight: 650;
}
.resume-draft {
  max-width: 1220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid color-mix(in oklch, var(--on-red), transparent 65%);
  margin-top: 26px;
  padding: 22px 24px 0;
}
.resume-draft strong {
  font-size: 15px;
  font-weight: 600;
}
.resume-draft p {
  font-size: 14px;
  margin-top: 6px;
  max-width: 60ch;
  overflow-wrap: anywhere;
}
.resume-draft button {
  flex-shrink: 0;
}
.no-script {
  padding: 30px var(--gutter);
  color: var(--on-red);
}
body:not([data-stage="entry"]) .surface {
  width: 92%;
  border-bottom-right-radius: clamp(80px, 12vw, 180px);
  padding-top: 32px;
  padding-bottom: 46px;
}
body:not([data-stage="entry"]) .surface:before {
  right: -8.7%;
  width: 8.7%;
}
.project-flow {
  max-width: 1050px;
}
.project-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}
.project-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 22px;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-titles {
  min-width: 0;
}
.project-titles > a {
  font-size: 16px;
  text-decoration: none;
  color: var(--muted);
}
.project-titles > a:hover {
  text-decoration: underline;
}
.project-titles h1 {
  font-size: clamp(31px, 4.1vw, 57px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.quiet-button {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 12px 18px;
  font-size: 13px;
  flex-shrink: 0;
}
.quiet-button:hover {
  background: var(--soft);
}
.project-description {
  margin: 22px 0 12px;
  max-width: 64ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.project-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-facts .source-link {
  text-decoration: none;
}
.project-facts .source-link:hover {
  text-decoration: underline;
}
.notice {
  padding: 12px 0 0;
  color: var(--red-text);
  font-size: 14px;
  line-height: 1.5;
  max-width: 70ch;
}
.thread-line {
  display: block;
  color: var(--red-text);
  margin: 22px 0 12px;
  width: min(330px, 66%);
}
.question {
  font-size: clamp(33px, 4vw, 56px);
  font-weight: 530;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 22px;
  outline: none;
  max-width: 25ch;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0 20px;
  line-height: 1.4;
  font-size: clamp(21px, 2.35vw, 31px);
  min-height: 100px;
}
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
textarea:focus-visible {
  outline-offset: 7px;
}
#goal {
  max-height: 340px;
}
.goal-under {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 13px;
}
.goal-under > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
}
.goal-under button {
  padding: 0;
  line-height: 1.6;
  font-size: 13px;
  flex-shrink: 0;
}
.requirements {
  margin-top: 23px;
}
.requirements summary {
  font-size: 14px;
}
.requirements label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 18px;
}
.requirements textarea {
  font-size: 17px;
  margin-top: 8px;
  min-height: 90px;
}
.requirements p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.goal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}
.draft-state {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.draft-state:empty {
  display: none;
}
.flow-foot {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 23px var(--gutter) 28px;
  color: var(--on-red);
  font-size: 13px;
  align-items: center;
}
.flow-foot button {
  font-size: 12px;
  text-decoration: underline;
}
.flow-foot > span {
  line-height: 1.5;
  max-width: 65ch;
}
.handoff-heading > .question {
  margin-bottom: 12px;
}
.handoff-heading > p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
}
.goal-review {
  margin: 32px 0 30px;
}
.review-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  color: var(--muted);
  gap: 20px;
}
.review-label button {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink);
}
#review-goal {
  font-size: clamp(21px, 2.3vw, 31px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
#requirements-review {
  margin-top: 22px;
}
#review-requirements {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 9px;
  color: var(--muted);
}
.handoff-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.agent-picker {
  max-width: 320px;
  flex: 1;
}
.agent-picker label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--muted);
}
select {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 56px;
  width: 100%;
  padding: 12px 30px 12px 16px;
  font-size: 16px;
}
.handoff-instruction {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--muted);
  max-width: 68ch;
}
.copy-feedback {
  margin: 16px 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}
.handoff-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 25px;
}
.request-details,
.connection-help {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.request-details summary,
.connection-help summary {
  font-size: 14px;
}
.request-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--soft);
  max-height: 380px;
  overflow: auto;
}
.connection-help p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 70ch;
}
.after-handoff {
  margin-top: 19px;
  max-width: 65ch;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.after-handoff p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}
.site-footer {
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin: 0 auto;
  padding: 49px var(--gutter) 42px;
  align-items: flex-start;
  background: var(--paper);
}
.site-footer > div:first-child {
  max-width: 67ch;
}
.footer-name {
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 550;
}
.site-footer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 9px;
}
.site-footer details {
  margin-top: 19px;
  font-size: 13px;
}
.site-footer details > p {
  margin-top: 16px;
}
.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}
.footer-end a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 13px;
}
.preview-label {
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
details[open] > summary > svg {
  transform: rotate(45deg);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-flow:not([hidden]),
[data-panel="goal"]:not([hidden]),
[data-panel="handoff"]:not([hidden]) {
  animation: arrive 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 1500px) {
  .surface {
    width: 85%;
    padding-top: 72px;
    padding-bottom: 80px;
  }
  .surface:before {
    right: -17.65%;
    width: 17.65%;
  }
  .entry-action {
    padding-top: 40px;
    padding-bottom: 65px;
  }
  .project-flow {
    max-width: 1120px;
  }
}
@media (max-width: 900px) {
  .surface {
    width: 94%;
    padding-right: calc(var(--gutter) + 12px);
    padding-bottom: 48px;
  }
  .surface:before {
    right: -6.4%;
    width: 6.4%;
    height: 90px;
  }
  .entry-copy h1 {
    font-size: clamp(42px, 7.5vw, 68px);
  }
  .entry-copy .red-type {
    white-space: normal;
    max-width: 13ch;
  }
  .entry-foot {
    align-items: flex-start;
    margin-inline: 8px;
  }
  .entry-foot > span {
    max-width: 32ch;
  }
  .project-description {
    font-size: 17px;
  }
  .goal-under {
    flex-direction: column;
    gap: 10px;
  }
  .project-titles h1 {
    font-size: 39px;
  }
  .project-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .project-titles > a {
    font-size: 14px;
  }
  .goal-actions {
    gap: 12px;
  }
  .site-footer {
    gap: 30px;
  }
  .surface .project-flow {
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding-block: 22px 18px;
  }
  .brand {
    width: 130px;
  }
  .site-header nav,
  .nav-links {
    gap: 13px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  /* Beside the logo there is room for the theme button only; the links take a row of their own */
  body:not([data-stage="entry"]) .site-header {
    padding-bottom: var(--space-6);
  }
  body:not([data-stage="entry"]) .nav-links {
    position: absolute;
    left: var(--gutter);
    bottom: var(--space-3);
  }
  .icon-button {
    width: 34px;
    height: 34px;
  }
  .surface {
    width: 96%;
    padding-top: 37px;
    padding-bottom: 39px;
    border-bottom-right-radius: 100px;
    padding-right: 24px;
  }
  .surface:before {
    right: -4.17%;
    width: 4.17%;
    height: 120px;
  }
  .entry-copy h1 {
    font-size: clamp(39px, 9.8vw, 58px);
    letter-spacing: -0.05em;
  }
  .intro-note {
    font-size: 17px;
    max-width: 27ch;
    margin-top: 22px;
  }
  .entry-action {
    padding-top: 24px;
    padding-bottom: 30px;
  }
  .entry-action label {
    margin-left: 0;
    font-size: 10px;
  }
  .repo-input {
    padding: 5px 5px 5px 16px;
    gap: 10px;
    min-height: 65px;
    border-radius: 38px;
  }
  .repo-symbol {
    flex-basis: 22px;
  }
  .repo-input input {
    font-size: 16px;
  }
  .repo-input .button {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
  }
  .repo-input .button span {
    display: none;
  }
  .repo-input .button:after {
    content: none;
  }
  .entry-foot {
    flex-direction: column;
    gap: 9px;
    margin: 17px 0 0;
    font-size: 12px;
  }
  .entry-foot > span {
    max-width: 42ch;
  }
  .entry-foot .text-button {
    font-size: 13px;
  }
  .entry-action .field-error,
  .entry-action #continue-unchecked {
    margin-left: 0;
  }
  .resume-draft {
    padding: 18px 0 0;
    gap: 15px;
  }
  .resume-draft p {
    font-size: 12px;
  }
  .resume-draft button {
    font-size: 12px;
  }
  .project-identity {
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
  }
  .project-avatar {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
    border-radius: 14px;
  }
  .project-titles {
    flex: 1;
  }
  .project-titles h1 {
    font-size: clamp(25px, 7vw, 36px);
    margin-top: 2px;
  }
  .project-titles > a {
    font-size: 12px;
  }
  .quiet-button {
    padding: 8px 12px;
    font-size: 11px;
    gap: 5px;
    min-height: 36px;
  }
  .quiet-button svg {
    display: none;
  }
  .project-description {
    margin-top: 19px;
    font-size: 16px;
  }
  .project-facts {
    font-size: 11px;
    gap: 8px 13px;
  }
  .thread-line {
    height: 42px;
    margin-block: 15px 12px;
  }
  .question {
    font-size: clamp(29px, 7.8vw, 40px);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
  }
  .wide-break {
    display: none;
  }
  body:not([data-stage="entry"]) .surface {
    width: 96%;
    padding: 25px 24px 34px;
    border-bottom-right-radius: 70px;
  }
  body:not([data-stage="entry"]) .surface:before {
    right: -4.17%;
    width: 4.17%;
  }
  textarea {
    font-size: 22px;
    padding-top: 10px;
    padding-bottom: 16px;
    min-height: 120px;
  }
  .goal-under > p {
    font-size: 12px;
  }
  .goal-under button {
    font-size: 12px;
  }
  .requirements {
    margin-top: 21px;
  }
  .requirements summary {
    font-size: 13px;
  }
  .goal-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 15px;
    margin-top: 25px;
  }
  .goal-actions .button {
    width: 100%;
    justify-content: space-between;
    padding-inline: 22px;
    font-size: 14px;
    min-height: 56px;
  }
  .goal-actions .draft-state {
    font-size: 11px;
  }
  .flow-foot {
    padding-block: 18px 22px;
    align-items: flex-start;
    font-size: 11px;
    gap: 20px;
  }
  .flow-foot button {
    font-size: 11px;
    flex-shrink: 0;
    padding-top: 0;
  }
  .handoff-heading > p {
    font-size: 14px;
  }
  .goal-review {
    margin-block: 25px;
  }
  #review-goal {
    font-size: 22px;
  }
  .handoff-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
  }
  .agent-picker {
    max-width: none;
  }
  .handoff-controls .button {
    justify-content: space-between;
    font-size: 15px;
  }
  .handoff-instruction {
    font-size: 13px;
  }
  .handoff-secondary {
    flex-wrap: wrap;
    gap: 6px;
  }
  .handoff-secondary .text-button {
    font-size: 13px;
  }
  .request-details summary,
  .connection-help summary {
    font-size: 13px;
  }
  .after-handoff p {
    font-size: 14px;
  }
  .site-footer {
    padding-block: 30px;
    gap: 28px;
    flex-direction: column;
  }
  .footer-end {
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer-end .preview-label {
    margin-left: auto;
  }
  .footer-end .text-button {
    font-size: 11px;
  }
  .footer-name {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* The project remains visible while the work area unfolds beneath it. */
@media (min-width: 901px) {
  .wide-break {
    display: none;
  }
  .question {
    max-width: none;
  }
}
body:not([data-stage="entry"]) #forget-entry {
  display: none;
}
body[data-stage="handoff"] .project-description,
body[data-stage="handoff"] .project-facts {
  display: none;
}
body[data-stage="handoff"] .project-avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 16px;
}
body[data-stage="handoff"] .project-titles h1 {
  font-size: 36px;
}
body[data-stage="handoff"] .thread-line {
  height: 36px;
  margin-top: 20px;
}
.entry-copy .red-type {
  color: var(--red);
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  top: 0;
}

/* Restore the opening composition from the first approved red mockup. */
body[data-stage="entry"] .experience {
  --entry-width: 58%;
}
body[data-stage="entry"] .site-header {
  height: 120px;
  padding-block: 0;
  background: linear-gradient(
    to right,
    var(--paper) 0 var(--entry-width),
    transparent var(--entry-width) 100%
  );
}
body[data-stage="entry"] .site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14%;
  height: clamp(240px, 25.5vw, 360px);
  border-bottom-left-radius: 100% 52%;
  background: var(--paper);
  pointer-events: none;
}
body[data-stage="entry"] .site-header > * {
  position: relative;
  z-index: 1;
}
body[data-stage="entry"] .site-header nav {
  position: static;
}
body[data-stage="entry"] .site-header .nav-links {
  position: absolute;
  left: calc(var(--gutter) + 254px);
  top: 54px;
}
body[data-stage="entry"] .surface {
  width: var(--entry-width);
  border-bottom-right-radius: clamp(180px, 27vw, 390px);
  padding: clamp(34px, 5vw, 76px) var(--gutter) 66px;
}
body[data-stage="entry"] .surface::before {
  content: none;
}
.entry-copy .red-type {
  white-space: normal;
  max-width: 11ch;
}
@media (max-width: 900px) {
  body[data-stage="entry"] .experience {
    --entry-width: 72%;
  }
  body[data-stage="entry"] .surface {
    border-bottom-right-radius: 25vw;
    padding-bottom: 54px;
  }
}
@media (max-width: 600px) {
  body[data-stage="entry"] .experience {
    --entry-width: 88%;
  }
  body[data-stage="entry"] .site-header {
    height: 124px;
    align-items: flex-start;
    padding-top: 22px;
  }
  body[data-stage="entry"] .site-header::after {
    content: none;
  }
  body[data-stage="entry"] .site-header .nav-links {
    left: var(--gutter);
    top: 89px;
  }
  body[data-stage="entry"] .theme-toggle {
    position: absolute;
    top: 31px;
    right: calc(12% + 16px);
  }
  body[data-stage="entry"] .surface {
    padding: 24px 24px 48px;
    border-bottom-right-radius: 110px;
  }
  .entry-copy .intro-note {
    max-width: 27ch;
  }
}

/* Setup follows project selection directly. Extra context is optional. */
body[data-stage="handoff"] .project-description {
  display: block;
}
body[data-stage="handoff"] .project-facts {
  display: flex;
}
.setup-explanation {
  margin-top: 28px;
  max-width: 70ch;
}
.setup-explanation h3 {
  font-weight: 560;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.setup-explanation > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.setup-explanation .connection-help {
  border: 0;
  padding-block: 12px 0;
}
.handoff-controls {
  margin-top: 26px;
}
.requirements textarea {
  font-size: 17px;
}
.link-help {
  max-width: 43ch;
}
.link-help p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 13px;
}
.entry-copy .intro-note {
  max-width: 34ch;
}

.install-setup {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--soft);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.install-setup strong {
  font-weight: 600;
}
.install-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.install-line code {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: break-word;
  user-select: all;
}
.install-line .button {
  gap: 12px;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 14px;
}
.install-setup .text-button {
  margin-top: 6px;
  color: var(--muted);
}
.install-setup .copy-feedback {
  margin-top: 4px;
}
.open-in-ugt {
  margin-top: 28px;
}
.open-in-ugt h3 {
  font-size: 18px;
  font-weight: 600;
}
.open-in-ugt p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.open-in-ugt .button {
  margin-top: 16px;
  text-decoration: none;
}
.open-in-ugt .open-note {
  margin-top: 12px;
  font-size: 14px;
}
@media (max-width: 560px) {
  .install-line {
    flex-direction: column;
    align-items: stretch;
  }
  .install-line code {
    padding: 10px 12px;
    font-size: 12px;
  }
}
.existing-setup {
  margin-top: 28px;
}
.existing-setup > summary {
  font-size: 16px;
  font-weight: 550;
}
.existing-setup-content {
  padding-top: 4px;
}
.existing-setup .requirements {
  margin-block: 20px;
}

/* Pages of prose: the privacy policy and the terms. */
.prose {
  max-width: 68ch;
  padding-bottom: 48px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
.prose h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.prose h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 36px 0 8px;
}
.prose p,
.prose ul {
  margin: 0 0 12px;
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 6px;
}
.prose .lead {
  color: var(--muted);
}
.prose a {
  color: var(--red-text);
  text-underline-offset: 3px;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Next actions use the same type and controls as the approved entry page. */
[data-panel="handoff"] .requirements { margin-block: 20px; }
.handoff-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.handoff-buttons .secondary-action { background: transparent; color: var(--ink); border: 1px solid var(--line); }
#use-agent { margin-top: 12px; }
#install-label, #install-next { margin-top: 10px; }
/* The helper row's quiet links: finding the link, and opening a project saved earlier */
.entry-links {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.saved-project {
  position: relative;
  white-space: nowrap;
}
/* not the field's own label, which the band styles as a small heading */
.entry-action .saved-project label {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  cursor: pointer;
}
.saved-project label:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.saved-project input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.saved-project:focus-within label {
  outline: 3px solid var(--on-red);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .entry-links {
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }
}

/* Catalogue discovery stays available beside the project-first flow. */
.site-header .browse-link { font-weight: 600; }
@media (max-width: 760px) {
  .site-header nav > a[href="#how-it-works"] { display: none; }
}
