:root {
  color-scheme: light;
  --ink: #14120f;
  --muted: #69645d;
  --line: #ded8ce;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #f0ebe2;
  --accent: #bb5a3a;
  --accent-ink: #ffffff;
  --green: #617866;
  --plum: #56415f;
  --blue: #315f72;
  --shadow: 0 24px 70px rgba(36, 27, 18, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(222, 216, 206, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark,
.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand-mark {
  overflow: hidden;
  background: url("/favicon.svg?v=brand-icon-2") center/100% 100% no-repeat;
  color: transparent;
  font-size: 0;
}

.brand-icon {
  background: #d82f78;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a,
.text-link {
  text-decoration: none;
}

nav a:hover,
.text-link:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 70%, white);
  outline-offset: 3px;
}

.hero-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 780px;
}

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

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  font-weight: 520;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 520;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy p,
.section-note {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 720px;
}

.hero-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

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

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.live-panel,
.profile-card,
.interest-form,
.profile-fact-panel,
.inquiry-form,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.live-panel {
  padding: 18px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-profile-list {
  display: grid;
  gap: 10px;
}

.mini-profile {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  text-decoration: none;
}

.mini-profile img {
  width: 62px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.mini-profile span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.two-column,
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

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

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
}

.profile-card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(36, 27, 18, 0.18);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--soft);
}

.profile-card-body {
  padding: 15px;
}

.profile-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.72);
}

.split-band {
  background: linear-gradient(135deg, var(--ink), var(--plum));
  color: var(--paper);
}

.split-band .section-note,
.split-band .clean-list {
  color: rgba(251, 250, 247, 0.74);
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.clean-list li {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.create-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.8fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.interest-form,
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.profile-carousel {
  position: relative;
  min-height: min(820px, 86vh);
  overflow: hidden;
  background: var(--ink);
}

.profile-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.profile-carousel-slide.is-active {
  opacity: 1;
}

.profile-carousel-slide img {
  width: 100%;
  height: min(820px, 86vh);
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.profile-carousel-slide figcaption {
  position: absolute;
  right: clamp(18px, 4vw, 60px);
  bottom: clamp(92px, 10vw, 132px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-brand-overlay {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 4vw, 56px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 780;
  text-decoration: none;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.5);
}


.profile-hero-overlay {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(38px, 7vw, 76px);
  z-index: 3;
  max-width: 950px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.profile-hero-overlay p {
  margin-bottom: 14px;
  font-weight: 760;
}

.profile-hero-overlay h1 {
  margin-bottom: 8px;
  font-size: clamp(4rem, 10vw, 9rem);
}

.tag.light {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  backdrop-filter: blur(12px);
}

.carousel-controls {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(28px, 5vw, 54px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-button,
.carousel-dot {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font: inherit;
}

.carousel-dots {
  display: flex;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}

.carousel-dot.is-active {
  background: #fff;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 48px);
}

.profile-intro > *,
.profile-layout > *,
.detail-group,
.inquiry-flow-section {
  min-width: 0;
}

.profile-meta {
  color: var(--muted);
  font-weight: 760;
}

.lead-copy {
  width: min(100%, 920px);
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.32;
  overflow-wrap: break-word;
}

.profile-actions.stacked {
  align-items: stretch;
  min-width: min(320px, 100%);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 0 clamp(18px, 5vw, 72px) clamp(60px, 8vw, 100px);
}

.profile-section {
  margin-bottom: 32px;
}

.detail-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
}

.detail-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.detail-group h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.detail-group p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-row span:first-child {
  color: var(--muted);
}

.portfolio-tags {
  display: grid;
  gap: 9px;
}

.portfolio-tags .tag {
  width: fit-content;
  border-radius: 0;
  border-width: 0 0 0 2px;
  background: transparent;
  font-size: 0.94rem;
}

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

.inquiry-flow-section {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.inquiry-flow {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.flow-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.flow-progress span {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  text-transform: uppercase;
}

.flow-progress span.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.flow-step {
  display: none;
  gap: 18px;
}

.flow-step.is-active {
  display: grid;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.choice-chip {
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.choice-chip.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

.flow-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.flow-review {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: var(--paper);
}

.flow-review span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero-shell,
  .profile-layout,
  .profile-intro,
  .two-column,
  .split-band,
  .create-section {
    grid-template-columns: 1fr;
  }

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

  .inquiry-flow-section {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .profile-grid,
  .interest-form,
  .inquiry-form,
  .guide-grid,
  .detail-groups,
  .flow-fields,
  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .profile-carousel {
    min-height: 68vh;
  }

  .profile-carousel-slide img {
    height: 68vh;
    min-height: 520px;
  }

  .profile-hero-overlay h1 {
    font-size: clamp(3.05rem, 16vw, 4.4rem);
  }

  .profile-hero-overlay {
    bottom: 92px;
  }

  .profile-carousel-slide figcaption {
    display: none;
  }

  .carousel-controls {
    right: auto;
    left: clamp(18px, 5vw, 72px);
  }

  .profile-intro,
  .profile-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  .profile-intro > div,
  .profile-layout > *,
  .detail-group,
  .inquiry-flow-section {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .lead-copy,
  .profile-intro .section-note,
  .profile-meta {
    width: 100%;
    max-width: 318px;
  }

  .lead-copy {
    font-size: 1.16rem;
    line-height: 1.4;
  }

  .flow-actions {
    display: grid;
  }

  .profile-card img {
    aspect-ratio: 5 / 4;
  }
}


.builder-demo {
  background: var(--paper);
}

.builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
}

.builder-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
}

.builder-hero p,
.handle-seed p {
  color: var(--muted);
}

.handle-seed {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.handle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.builder-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 clamp(18px, 5vw, 72px) clamp(56px, 7vw, 92px);
}

.builder-chat,
.builder-fields,
.builder-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.builder-chat {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.builder-fields {
  padding: 16px;
}

.builder-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.builder-panel-heading strong {
  color: var(--ink);
}

.chat-thread {
  display: grid;
  max-height: 430px;
  min-height: 340px;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
}

.chat-message.agent {
  background: var(--paper);
  color: var(--ink);
}

.chat-message.user {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-replies .choice-chip {
  width: auto;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.field-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.field-group-demo {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(251, 250, 247, 0.72);
}

.field-group-demo h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.field-group-demo dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.field-group-demo dl div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field-group-demo dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-group-demo dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.field-group-demo dd {
  margin: 0;
  overflow-wrap: break-word;
  font-weight: 720;
}

.builder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
}

.preview-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 360px;
  background: var(--ink);
}

.preview-photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.preview-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 54px);
}

.preview-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.preview-copy p:not(.profile-meta) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.builder-architecture {
  padding-top: 0;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.architecture-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.architecture-grid p {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .builder-hero,
  .builder-workspace,
  .builder-preview,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .builder-chat {
    position: static;
  }
}

@media (max-width: 680px) {
  .handle-row,
  .chat-compose,
  .field-groups {
    grid-template-columns: 1fr;
  }

  .builder-hero,
  .builder-workspace {
    padding-right: 18px;
    padding-left: 18px;
  }

  .chat-thread {
    min-height: 280px;
  }

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

  .preview-photo-strip img,
  .preview-photo-strip {
    min-height: 260px;
  }
}
