/* Gayrimenkul Akademi — site styles (plain CSS, no build step) */

:root {
  --paper: #f6f6f3;
  --surface: #ffffff;
  --ink: #111214;
  --graphite: #565b60;
  --muted: #676c70;
  --rule: #d8d9d5;
  --accent: #2448e8;
  --accent-dark: #1937bc;
  --font-sans: "Arial Narrow", "Aptos", "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --page-pad: clamp(1rem, 3.5vw, 4.5rem);
  --section-gap: clamp(5.5rem, 11vw, 10rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 18, 20, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 246, 243, 0.92);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding-inline: var(--page-pad);
}

.brand {
  display: inline-flex;
  grid-column: 1 / span 4;
  align-items: center;
  width: max-content;
  min-height: 44px;
  gap: 0.75rem;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-symbol {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.92))
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.72));
  mix-blend-mode: multiply;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 0.83rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-name strong {
  font-weight: 650;
}

.primary-nav {
  display: flex;
  grid-column: 5 / span 5;
  justify-content: center;
  gap: clamp(1.15rem, 2.2vw, 2.4rem);
}

.primary-nav a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 520;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.primary-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.header-action {
  display: inline-flex;
  grid-column: 11 / -1;
  justify-self: end;
  align-items: center;
  justify-content: space-between;
  min-width: 148px;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.header-action:hover {
  background: var(--ink);
  color: var(--surface);
}

.header-action.is-bottom {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.header-action.is-bottom:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(100svh - 74px);
  padding-inline: var(--page-pad);
}

.hero-copy {
  display: flex;
  grid-column: 1 / span 7;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 6rem) clamp(4rem, 6vw, 5rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 clamp(2rem, 4vw, 3.8rem);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.59rem;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 7.3vw, 8rem);
  font-weight: 480;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-intro {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: clamp(2.6rem, 5vw, 5.2rem);
}

.hero-intro > p {
  grid-column: 1 / span 5;
  max-width: 41rem;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 186px;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 610;
  letter-spacing: -0.01em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

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

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

.button-quiet {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--surface);
}

.hero-visual {
  position: relative;
  display: block;
  grid-column: 8 / -1;
  min-width: 0;
  min-height: 38rem;
  margin: 0;
  overflow: hidden;
  border-inline: 1px solid var(--rule);
  background: var(--paper);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 18, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 20, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.hero-city-art {
  position: absolute;
  inset: 3.7rem 1rem 2.8rem;
  z-index: 1;
  width: calc(100% - 2rem);
  height: calc(100% - 6.5rem);
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.04);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.hero-visual figcaption {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}

.visual-legend {
  position: absolute;
  right: 1.2rem;
  bottom: 1.25rem;
  left: 1.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.visual-legend i {
  height: 1px;
  flex: 1;
  background: var(--rule);
}

.hero-ledger {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  border-top: 1px solid var(--rule);
}

.hero-ledger span {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.3rem;
  border-right: 1px solid var(--rule);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-ledger img {
  width: 2rem;
  height: 2rem;
  margin-right: 0.7rem;
  object-fit: contain;
  opacity: 0.9;
}

.hero-ledger span:first-child {
  padding-left: 0;
}

.hero-ledger span:last-child {
  border-right: 0;
}

.hero-ledger b {
  margin-right: 0.75rem;
  color: var(--accent);
  font-weight: 650;
}

.section {
  padding: var(--section-gap) var(--page-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading .eyebrow {
  grid-column: 1 / span 4;
}

.section-heading h2 {
  grid-column: 5 / span 7;
}

.section h2,
.live-section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 5.5rem);
  font-weight: 485;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading h2 span,
.final-cta h2 span {
  display: block;
  color: var(--accent);
}

.technical-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: clip;
  background: transparent;
  isolation: isolate;
}

.technical-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.system-overview img,
.card-visual,
.program-visual img,
.curriculum-body img,
.method-visual img,
.flow-visual,
.faq-visual img,
.cta-visual img {
  filter:
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.96))
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.82));
  mix-blend-mode: multiply;
}

.system-section {
  border-bottom: 1px solid var(--rule);
}

.system-overview {
  height: clamp(12rem, 22vw, 20rem);
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: clamp(1rem, 2vw, 2rem) 0;
  border-block: 1px solid var(--rule);
}

.system-overview img {
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.02);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.system-card {
  position: relative;
  display: flex;
  min-height: 23rem;
  padding: 1.4rem clamp(1.2rem, 2.4vw, 2.4rem) 1.5rem;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  background: transparent;
  transition:
    background-color 220ms ease,
    transform 220ms ease;
}

.system-card:first-child {
  border-left: 1px solid var(--rule);
}

.system-card:hover {
  z-index: 2;
  background: rgba(17, 18, 20, 0.025);
  transform: translateY(-6px);
}

.card-index {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.card-visual {
  display: block;
  width: 100%;
  height: clamp(7.5rem, 11vw, 9.5rem);
  margin: 1.7rem 0 1.25rem;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.system-card h3 {
  max-width: 11ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.system-card p {
  max-width: 28rem;
  min-height: 6rem;
  margin: 0;
  color: var(--graphite);
  font-size: 0.93rem;
  line-height: 1.65;
}

.system-card small {
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.program-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
}

.program-intro {
  grid-column: 1 / span 4;
  padding-right: clamp(2rem, 4.5vw, 5rem);
}

.program-intro h2,
.method-heading h2,
.faq-heading h2 {
  font-size: clamp(2.2rem, 3.8vw, 4.4rem);
  line-height: 1;
}

.section-copy {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: var(--graphite);
  font-size: 0.96rem;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.76rem;
  font-weight: 620;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.program-visual {
  height: clamp(18rem, 28vw, 24rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.program-visual img {
  object-position: left center;
}

.curriculum-list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--ink);
}

.curriculum-item {
  border-bottom: 1px solid var(--rule);
}

.curriculum-item summary {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  min-height: 88px;
  gap: 1.2rem;
  cursor: pointer;
  list-style: none;
}

.curriculum-item summary::-webkit-details-marker {
  display: none;
}

.curriculum-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.curriculum-title {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 535;
  letter-spacing: -0.025em;
}

.curriculum-status {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.curriculum-toggle {
  position: relative;
  width: 18px;
  height: 18px;
}

.curriculum-toggle::before,
.curriculum-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.curriculum-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.curriculum-item[open] .curriculum-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.curriculum-item[open] summary {
  color: var(--accent);
}

.curriculum-body {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  padding: 0 0 2rem 3.2rem;
  color: var(--graphite);
}

.curriculum-body img {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.curriculum-body p {
  max-width: 36rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.live-section {
  padding: 0 var(--page-pad);
  border-block: 1px solid var(--ink);
  background: #eef0f3;
  color: var(--ink);
}

.live-section :focus-visible {
  outline-color: var(--accent);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 46rem;
}

.live-visual {
  position: relative;
  display: grid;
  grid-column: 1 / span 6;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(17, 18, 20, 0.18);
  border-left: 1px solid rgba(17, 18, 20, 0.18);
  background: rgba(255, 255, 255, 0.42);
}

.live-visual-label,
.live-coordinate {
  position: absolute;
  right: 1.4rem;
  left: 1.4rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.live-visual-label {
  top: 1.4rem;
  color: var(--ink);
}

.live-coordinate {
  bottom: 1.4rem;
  color: var(--muted);
}

.live-coordinate span:nth-child(2) {
  color: var(--accent);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(36, 72, 232, 0.2);
  animation: signal-pulse 2.6s ease-in-out infinite;
}

.live-topology-art {
  position: absolute;
  inset: 4rem 1.5rem 3.7rem;
  z-index: 2;
  width: calc(100% - 3rem);
  height: calc(100% - 7.7rem);
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.9))
    drop-shadow(0 0 0 rgba(17, 18, 20, 0.68));
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.live-copy {
  display: flex;
  grid-column: 7 / -1;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem) clamp(2rem, 6vw, 7rem);
  flex-direction: column;
  justify-content: center;
}

.eyebrow-light {
  color: var(--graphite);
}

.eyebrow-light span {
  color: var(--ink);
}

.live-copy h2 {
  max-width: 11ch;
}

.live-copy > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 2.2rem 0 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.75;
}

.live-copy ul {
  display: grid;
  margin: 2.5rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.live-copy li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  color: var(--graphite);
  font-size: 0.78rem;
}

.live-copy li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "+";
  font-family: var(--font-mono);
}

.button-light {
  align-self: flex-start;
  border-color: var(--ink);
  color: var(--ink);
}

.button-light:hover {
  background: var(--ink);
  color: var(--surface);
}

.method-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.method-heading {
  grid-column: 1 / span 5;
  padding-right: clamp(2rem, 5vw, 6rem);
}

.method-visual {
  height: clamp(16rem, 24vw, 21rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}

.method-visual img {
  object-position: left center;
}

.method-flow {
  grid-column: 7 / -1;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: flow;
}

.method-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 5.5rem;
  align-items: center;
  min-height: 135px;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.flow-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.flow-content h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 540;
  letter-spacing: -0.025em;
}

.flow-content p {
  max-width: 31rem;
  margin: 0;
  color: var(--graphite);
  font-size: 0.88rem;
  line-height: 1.6;
}

.flow-visual {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.faq-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.faq-heading {
  grid-column: 1 / span 4;
  padding-right: clamp(2rem, 4vw, 5rem);
}

.faq-visual {
  height: clamp(14rem, 20vw, 18rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.faq-visual img {
  object-position: left center;
}

.faq-list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  min-height: 88px;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.faq-item summary strong {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 535;
  letter-spacing: -0.02em;
}

.faq-item summary i {
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-item summary i::before,
.faq-item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary i::after {
  transform: translate(-50%, -50%);
}

.faq-item p {
  max-width: 43rem;
  margin: 0;
  padding: 0 2.5rem 2rem 3.5rem;
  color: var(--graphite);
  font-size: 0.92rem;
  line-height: 1.7;
}

.final-cta {
  padding: clamp(4rem, 8vw, 7rem) var(--page-pad);
  background: var(--paper);
}

.final-cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta-top p {
  margin: 0;
}

.final-cta-top span {
  color: var(--accent);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.final-cta h2 {
  grid-column: 1 / span 6;
  max-width: 12em;
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
}

.cta-visual {
  grid-column: 7 / span 3;
  align-self: end;
  height: clamp(10rem, 16vw, 14rem);
  padding-inline: clamp(0.5rem, 1.5vw, 1.5rem);
}

.cta-visual img {
  object-position: center bottom;
}

.final-cta-grid > div {
  display: flex;
  grid-column: 10 / -1;
  flex-direction: column;
  justify-content: flex-end;
}

.final-cta-grid > div p {
  margin: 0 0 2rem;
  color: var(--graphite);
  font-size: 0.92rem;
  line-height: 1.7;
}

.button-large {
  width: 100%;
  min-height: 62px;
}

.site-footer {
  display: block;
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-pad) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.footer-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-mast p {
  margin: 0;
}

.footer-mast span {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3.25rem);
}

.footer-brand-block {
  display: flex;
  grid-column: 1 / span 5;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.8rem;
}

.footer-slogan {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.footer-note {
  margin: 0;
  color: var(--graphite);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-col-explore {
  grid-column: 7 / span 2;
}

.footer-col-legal {
  grid-column: 9 / span 2;
}

.footer-access {
  grid-column: 11 / -1;
  gap: 0.55rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: max-content;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.site-footer nav {
  justify-content: flex-start;
  margin-top: 0;
}

.footer-login,
.footer-up {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  min-height: 44px !important;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.64rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.footer-login {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface) !important;
}

.footer-login:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--surface) !important;
}

.footer-up:hover {
  background: var(--ink);
  color: var(--surface) !important;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-base p {
  margin: 0;
}

.footer-base-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.footer-base-meta a {
  color: var(--ink);
  transition: color 180ms ease;
}

.footer-base-meta a:hover {
  color: var(--accent);
}

body.legal-open,
body.auth-open {
  overflow: hidden;
}

.legal-layer {
  position: relative;
  z-index: 80;
}

.legal-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 18, 20, 0.46);
  cursor: pointer;
}

.legal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 44rem);
  max-height: min(86svh, 52rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(17, 18, 20, 0.16);
}

.legal-dialog-head {
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.legal-dialog-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-dialog-mast p {
  margin: 0;
}

.legal-dialog-mast span {
  color: var(--accent);
}

.legal-dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.legal-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-dialog-title-row h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 6.5rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.legal-close:hover {
  background: var(--ink);
  color: var(--surface);
}

.legal-dialog-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.35rem 1.25rem 1.5rem;
  overscroll-behavior: contain;
}

.legal-dialog-body section + section {
  margin-top: 1.55rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.legal-dialog-body h3 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-dialog-body p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-dialog-body p + p {
  margin-top: 0.75rem;
}

.legal-dialog-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-dialog-foot p {
  margin: 0;
}

@media (max-width: 520px) {
  .legal-dialog-title-row {
    flex-direction: column;
  }

  .legal-close {
    width: 100%;
  }

  .legal-dialog-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 18, 20, 0.46);
  cursor: pointer;
}

.auth-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 28.5rem);
  max-height: min(90svh, 46rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(17, 18, 20, 0.16);
}

.auth-dialog-head {
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.auth-dialog-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-dialog-mast p {
  margin: 0;
}

.auth-dialog-mast span {
  color: var(--accent);
}

.auth-dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-dialog-title-row h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.auth-close {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 6.5rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.auth-close:hover {
  background: var(--ink);
  color: var(--surface);
}

.auth-dialog-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.4rem 1.25rem 1.5rem;
  overscroll-behavior: contain;
}

.auth-lead {
  margin: 0 0 1.35rem;
  color: var(--graphite);
  font-size: 0.92rem;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field span {
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms ease;
}

.auth-field input:focus {
  border-color: var(--accent);
}

.auth-field input::placeholder {
  color: #9a9ea3;
}

.auth-error {
  margin: 0;
  color: #b42318;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 610;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.auth-submit:hover:not(:disabled) {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.auth-submit:disabled,
.auth-submit.is-busy {
  cursor: wait;
  opacity: 0.78;
}

.auth-switch,
.auth-resend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 1.2rem 0 0;
  color: var(--graphite);
  font-size: 0.82rem;
}

.auth-resend-row {
  justify-content: space-between;
}

.auth-text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-text-btn:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

.auth-email-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: -0.45rem 0 1.2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.auth-code-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.auth-code-fieldset legend {
  margin: 0 0 0.65rem;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.auth-code-digit {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 650;
  text-align: center;
  outline: none;
}

.auth-code-digit:focus {
  border-color: var(--accent);
}

.auth-success {
  display: grid;
  gap: 0.85rem;
  padding: 0.5rem 0 0.25rem;
  text-align: left;
}

.auth-success-mark {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  margin: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.auth-success h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.auth-success p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.92rem;
  line-height: 1.65;
}

.auth-dialog-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-dialog-foot p {
  margin: 0;
}

@media (max-width: 520px) {
  .auth-dialog-title-row {
    flex-direction: column;
  }

  .auth-close {
    width: 100%;
  }

  .auth-code-inputs {
    gap: 0.35rem;
  }

  .auth-dialog-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .primary-nav {
    grid-column: 5 / span 4;
  }

  .header-action {
    grid-column: 10 / -1;
  }

  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-visual {
    grid-column: 8 / -1;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 7.2vw, 6.2rem);
  }

  .program-intro {
    grid-column: 1 / span 5;
  }

  .curriculum-list {
    grid-column: 6 / -1;
  }

  .curriculum-status {
    display: none;
  }

  .curriculum-item summary {
    grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
  }

  .final-cta-grid > div {
    grid-column: 9 / -1;
  }

  .final-cta h2 {
    grid-column: 1 / span 6;
  }

  .cta-visual {
    grid-column: 7 / span 2;
  }
}

@media (max-width: 820px) {
  :root {
    --section-gap: clamp(4.5rem, 14vw, 7rem);
  }

  html {
    scroll-padding-top: 8rem;
  }

  .header-shell {
    grid-template-rows: 66px 44px;
    min-height: 110px;
  }

  .brand {
    grid-column: 1 / span 6;
    grid-row: 1;
  }

  .primary-nav {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    align-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    border-top: 1px solid var(--rule);
    gap: 1.5rem;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .header-action {
    grid-column: 8 / -1;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / -1;
    padding: clamp(4rem, 13vw, 7rem) 0;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.7rem, 13.5vw, 7.5rem);
  }

  .hero-intro > p {
    grid-column: 1 / span 6;
  }

  .hero-visual {
    grid-column: 1 / -1;
    min-height: min(78vw, 36rem);
    border-top: 1px solid var(--rule);
  }

  .hero-city-art {
    inset: 3.5rem 0.75rem 2.8rem;
    width: calc(100% - 1.5rem);
    height: calc(100% - 6.3rem);
  }

  .hero-ledger {
    grid-template-columns: 1fr;
  }

  .hero-ledger span,
  .hero-ledger span:first-child {
    min-height: 48px;
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .section-heading .eyebrow,
  .section-heading h2 {
    grid-column: 1 / -1;
  }

  .section-heading h2 {
    max-width: 12ch;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-overview {
    height: clamp(10rem, 35vw, 15rem);
  }

  .system-card,
  .system-card:first-child {
    min-height: 22rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }

  .system-card p {
    min-height: auto;
  }

  .card-visual {
    width: min(100%, 18rem);
    height: 6.5rem;
  }

  .program-intro,
  .curriculum-list {
    grid-column: 1 / -1;
  }

  .program-intro {
    padding-right: 0;
    padding-bottom: 4rem;
  }

  .program-visual,
  .method-visual,
  .faq-visual {
    width: min(100%, 31rem);
  }

  .live-section {
    padding-inline: var(--page-pad);
  }

  .live-visual {
    grid-column: 1 / -1;
    min-height: min(90vw, 34rem);
    border-bottom: 1px solid rgba(17, 18, 20, 0.18);
  }

  .live-copy {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .method-heading,
  .method-flow {
    grid-column: 1 / -1;
  }

  .method-heading {
    padding: 0 0 4rem;
  }

  .faq-heading,
  .faq-list {
    grid-column: 1 / -1;
  }

  .faq-heading {
    padding: 0 0 4rem;
  }

  .final-cta h2,
  .cta-visual,
  .final-cta-grid > div {
    grid-column: 1 / -1;
  }

  .cta-visual {
    width: min(100%, 32rem);
    height: clamp(9rem, 30vw, 12rem);
    margin-top: 2rem;
    padding-inline: 0;
  }

  .final-cta-grid > div {
    margin-top: 3rem;
  }

  .final-cta-grid > div p {
    max-width: 30rem;
  }

  .button-large {
    max-width: 25rem;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: 34rem;
  }

  .footer-col-explore {
    grid-column: 1 / span 4;
  }

  .footer-col-legal {
    grid-column: 5 / span 4;
  }

  .footer-access {
    grid-column: 9 / -1;
  }
}

@media (max-width: 520px) {
  .header-shell {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .brand {
    grid-column: 1 / span 3;
  }

  .brand-name {
    display: none;
  }

  .header-action {
    grid-column: 4 / -1;
    min-width: 132px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 17vw, 5.5rem);
    line-height: 0.9;
  }

  .hero-intro {
    display: block;
  }

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

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 29rem;
    margin-inline: calc(var(--page-pad) * -1);
    border-right: 0;
    border-left: 0;
  }

  .hero-city-art {
    inset-block: 3rem;
    inset-inline: 0.25rem;
    width: calc(100% - 0.5rem);
    height: calc(100% - 6rem);
  }

  .system-card {
    min-height: 21rem;
  }

  .curriculum-item summary {
    grid-template-columns: 1.4rem minmax(0, 1fr) 1.25rem;
    min-height: 78px;
    gap: 0.7rem;
  }

  .curriculum-body {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.8rem;
    padding-left: 2.1rem;
  }

  .curriculum-body img {
    width: 3rem;
    height: 3rem;
  }

  .live-section {
    padding-inline: 0;
  }

  .live-copy {
    padding-inline: var(--page-pad);
  }

  .live-visual {
    border-inline: 0;
  }

  .live-topology-art {
    inset: 3.5rem 0.75rem 3.2rem;
    width: calc(100% - 1.5rem);
    height: calc(100% - 6.7rem);
  }

  .method-flow li {
    grid-template-columns: 2.2rem minmax(0, 1fr) 3rem;
  }

  .flow-visual {
    width: 2.75rem;
    height: 2.75rem;
  }

  .faq-item summary {
    grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
    min-height: 78px;
    gap: 0.6rem;
  }

  .faq-item p {
    padding: 0 1rem 1.8rem 2.6rem;
  }

  .footer-brand-block,
  .footer-col-explore,
  .footer-col-legal,
  .footer-access {
    grid-column: 1 / -1;
  }

  .footer-grid {
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .footer-access {
    max-width: 18rem;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-base-meta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
