/* Segfault-Macka: ana sayfa duzeni */

/* Institutional split hero (ENERGY 1, RHYTHM 2, no 100vh trap) */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(20px, 4.5vw, 68px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
}

.hero-figure {
  order: -1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-figure {
    order: 0;
  }
}

.hero-inst {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-lead {
  margin-top: 12px;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 20px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 960px) {
  .hero-figure img {
    aspect-ratio: 3 / 2;
  }
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* 01: Team & Mission */
.team-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 48px;
}

@media (min-width: 900px) {
  .team-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.mission-quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  line-height: 1.38;
  color: var(--ink);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.team-paragraphs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .team-paragraphs {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.team-facts-box {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 20px;
}

.team-facts-box dl {
  display: grid;
  gap: 12px;
}

.team-facts-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.team-facts-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.team-facts-box dt {
  color: var(--ink-muted);
}

.team-facts-box dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.competencies {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.competencies h3 {
  margin-bottom: 16px;
}

.competency-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}

@media (min-width: 640px) {
  .competency-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.competency-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96875rem;
  color: var(--ink);
}

.competency-list .idx {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

/* Team gallery (clean captions below images, no gradient overlays) */
.team-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .team-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .team-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-gallery figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}

.team-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-gallery figcaption {
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

/* 02: Workshop anatomy (44x44px markers, keyboard & tap accessible) */
.section-header-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 40px;
  align-items: end;
  margin-bottom: 32px;
}

@media (min-width: 840px) {
  .section-header-split {
    grid-template-columns: 1fr 1fr;
  }
}

.workshop-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--surface);
}

.workshop-frame img {
  width: 100%;
  height: auto;
}

.ws-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.ws-marker span {
  width: 30px;
  height: 30px;
  border-radius: var(--r-tag);
  background: var(--navy);
  color: var(--navy-ink);
  border: 2px solid #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(11, 20, 44, 0.35);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.ws-marker:hover span,
.ws-marker.is-active span {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.1);
}

.ws-legend {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .ws-legend {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .ws-legend {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ws-legend button {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.ws-legend button:hover,
.ws-legend button.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.ws-legend .num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Process list (structured horizontal sequence, not uniform floating cards) */
.process-block {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.process-block h3 {
  margin-bottom: 20px;
}

.process-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-list li {
  padding-top: 14px;
  border-top: 2px solid var(--navy);
}

.process-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.process-list h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-list p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* 03: Projects (featured photographic cards + structured spec rows, zero scroll-jack) */
.proj-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .proj-featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proj-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proj-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proj-photo-card .proj-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.proj-cat {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--r-tag);
}

.proj-body p {
  color: var(--ink-muted);
  font-size: 0.96875rem;
}

.proj-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

/* Text-first institutional project dossiers for vehicles/robots without photos yet */
.proj-dossiers {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .proj-dossiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proj-dossier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-specs {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
}

.proj-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.proj-specs dt {
  color: var(--ink-muted);
}

.proj-specs dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.proj-footnote {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* 04: Milestones & Season Calendar */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 960px) {
  .timeline-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.milestone-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

@media (max-width: 480px) {
  .milestone-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.milestone-date {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
}

.milestone-list p {
  font-size: 0.96875rem;
  color: var(--ink);
}

.calendar-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.calendar-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

@media (min-width: 640px) {
  .calendar-list li {
    grid-template-columns: 160px 1fr auto;
    gap: 16px;
  }
}

.cal-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 500;
}

.cal-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.cal-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cal-status {
  display: inline-block;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-tag);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  background: var(--surface);
  white-space: nowrap;
}

.calendar-list li.is-next .cal-status {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.calendar-list li.is-past .cal-status {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--ink-muted);
}

/* 05: Budget (high-contrast progress bar + accessible breakdown) */
.budget-summary {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .budget-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.budget-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 20px;
}

.budget-metric.is-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.budget-metric dt {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.budget-metric.is-accent dt {
  color: var(--accent);
  font-weight: 600;
}

.budget-metric dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 500;
  color: var(--ink);
}

.budget-metric.is-accent dd {
  color: var(--accent);
}

.budget-progress-wrap {
  margin-top: 20px;
}

.budget-bar {
  height: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-tag);
  overflow: hidden;
}

.budget-bar-fill {
  height: 100%;
  width: 14%;
  background: var(--accent);
}

.budget-bar-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Segmented allocation bar + expandable categories */
.budget-detail-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .budget-detail-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
  }
}

.alloc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 22px;
}

.alloc-panel h3 {
  font-size: 1.0625rem;
  margin-bottom: 14px;
}

.alloc-stacked {
  display: flex;
  height: 22px;
  border-radius: var(--r-tag);
  overflow: hidden;
  gap: 2px;
  background: var(--surface);
}

.alloc-seg {
  height: 100%;
}

.alloc-legend {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.alloc-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
}

.alloc-legend .lbl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.alloc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cat-accordion {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
}

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

.cat-trigger {
  width: 100%;
  min-height: 52px;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cat-trigger:hover {
  color: var(--accent);
}

.cat-name {
  flex: 1;
}

.cat-pct {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.cat-amt {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 72px;
  text-align: right;
}

.cat-panel {
  display: none;
  padding: 0 4px 16px 24px;
}

.cat-item.is-open .cat-panel {
  display: block;
}

.cat-sublist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cat-sublist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* 06: Support models (clean 2x2 bordered list instead of uniform floating cards) */
.support-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .support-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.support-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: 22px;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.support-list a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.support-list h3 {
  color: var(--ink);
  margin-bottom: 6px;
}

.support-list a:hover h3 {
  color: var(--accent);
}

.support-list p {
  color: var(--ink-muted);
  font-size: 0.96875rem;
}

.subsection-divider {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
