@import url("logo/styles.css");
@import url("logo/animation.css");

:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #f7fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.06), transparent 28%),
    #f7fafc;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 252, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 14rem;
  text-align: center;
}

.brand-lines {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.brand-lines span {
  height: 8px;
  background: center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 10'%3E%3Cpath d='M0 5 C40 2 80 8 120 5 S200 2 240 5 S320 2 360 5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.brand-name {
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #2563eb;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
}

.brand-xp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 22rem;
}

.brand-xp-logo {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-weight: 900;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 0.85;
  color: #111827;
}

.brand-carousel {
  width: min(34rem, 100%);
}

.carousel-row {
  overflow: hidden;
  height: 3rem;
}

.carousel-track {
  display: grid;
  gap: 0;
  animation: carousel-scroll 21s linear infinite;
}

.carousel-row:nth-child(2) .carousel-track {
  animation-delay: -3s;
}

.carousel-row:nth-child(3) .carousel-track {
  animation-delay: -6s;
}

.carousel-item {
  min-height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.carousel-left,
.carousel-right,
.carousel-xp {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.row-light .carousel-left,
.row-light .carousel-right,
.row-light .carousel-xp {
  color: #7c9cf6;
}

.row-strong .carousel-left,
.row-strong .carousel-right,
.row-strong .carousel-xp {
  color: #2563eb;
}

@keyframes carousel-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-3rem * 7));
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.nav-links a {
  color: #334155;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.header-controls {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.header-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.control-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.control-btn:hover,
.control-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(37, 99, 235, 0.2);
}

.control-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.control-toggle {
  min-width: 10rem;
}

.section {
  padding: 4rem 0;
}

.section-hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
}

.hero-text,
section p {
  max-width: 42rem;
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #111827;
  color: #f8fafc;
}

.button-secondary {
  background: transparent;
  border-color: #cbd5e1;
  color: #111827;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-card {
  width: 100%;
  min-height: 320px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.06);
}

.visual-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: #0f172a;
  font-weight: 700;
}

.section-title {
  max-width: 780px;
}

.value-grid,
.services-grid,
.align-grid {
  display: grid;
  gap: 1.5rem;
}

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

.value-card,
.service-card,
.cta-card,
.visual-box {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 2rem;
}

.value-card h3,
.service-card h2 {
  margin-top: 0;
}

.align-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.align-visual .visual-box {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.align-list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

.align-list li {
  margin-bottom: 0.9rem;
}

.section-cta {
  padding-top: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem;
}

.section-form {
  padding-top: 1rem;
}

.form-wrapper {
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #475569;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .align-grid,
  .value-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .visual-card,
  .value-card,
  .service-card,
  .cta-card,
  .visual-box {
    padding: 1.75rem;
  }
}

body.field-notes-page {
  background: #06070d;
  color: #f8fafc;
}

.field-notes-main {
  min-height: 100vh;
}

.field-notes-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.field-notes-label {
  margin: 0 0 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.field-notes-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  border: 1px solid rgba(248, 250, 252, 0.18);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.field-notes-back:hover,
.field-notes-back:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(-1px);
}

.field-notes-intro {
  margin: 0;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.35;
  max-width: 46rem;
}

.field-notes-sub {
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.72);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
}

.field-notes-list {
  display: grid;
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 1.5rem 4rem;
}

.note-unit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.note-unit:hover,
.note-unit:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.note-context {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.25s ease;
  white-space: nowrap;
}

.note-unit:hover .note-context,
.note-unit:focus-within .note-context {
  opacity: 1;
  max-width: 18rem;
}

.note-number {
  color: rgba(248, 250, 252, 0.7);
}

.note-unit p {
  margin: 0;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: clamp(1.95rem, 2.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.field-notes-closing {
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.field-notes-closing p {
  margin: 0 0 1.5rem;
  color: rgba(248, 250, 252, 0.72);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.8;
}

.field-notes-return {
  display: inline-flex;
  color: #dbeafe;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.field-notes-return:hover {
  opacity: 1;
}

body.framework-page {
  background: #f7fafc;
  color: #0f172a;
}

.framework-main {
  min-height: 100vh;
  padding: 5rem 0 6rem;
}

.framework-hero .container {
  max-width: 840px;
}

.framework-tag {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.9rem;
  color: #64748b;
}

.framework-title {
  margin: 0;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.framework-intro {
  margin: 1.75rem 0 0;
  max-width: 38rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.framework-grid {
  display: grid;
  gap: 2rem;
  margin: 4rem auto 0;
  max-width: 940px;
  padding: 0 1.5rem;
}

.stage-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  padding: 2.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.32);
}

.stage-label {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: #2563eb;
}

.stage-name {
  margin: 0;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.stage-description {
  margin: 1rem 0 1.5rem;
  max-width: 42rem;
  color: #475569;
}

.stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  color: #334155;
}

.stage-list li {
  position: relative;
  padding-left: 1.3rem;
}

.stage-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: #2563eb;
}

.stage-keypoint {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.stage-keypoint strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #475569;
}

.stage-keypoint p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

.subprinciples {
  margin-top: 1.5rem;
  color: #2563eb;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.stage-card:hover .subprinciples {
  opacity: 1;
}

.framework-footer {
  margin: 4rem auto 0;
  max-width: 840px;
  padding: 0 1.5rem;
}

.framework-note {
  margin: 0 0 1.75rem;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #334155;
}

.framework-flow {
  display: grid;
  gap: 0.85rem;
  padding-left: 1rem;
  margin-bottom: 1.75rem;
  color: #475569;
}

.framework-flow p::before {
  content: '—';
  margin-right: 0.75rem;
  color: #2563eb;
}

.framework-closing {
  margin: 0 0 2rem;
  color: #475569;
  line-height: 1.8;
}

.framework-return {
  display: inline-flex;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.framework-return:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .field-notes-container,
  .field-notes-list,
  .framework-hero .container,
  .framework-grid,
  .framework-footer {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .field-notes-container {
    padding: 3rem 1rem 4rem;
  }

  .note-unit {
    padding: 2rem 1.5rem;
  }

  .framework-main {
    padding: 3.5rem 0 4rem;
  }

  .framework-title {
    font-size: 2.6rem;
  }
}
