/*
 * ILD Overrides — Interactive Light Designs portfolio
 * Loaded AFTER styles.css — do NOT edit the base stylesheet.
 */

/* ===== Design Tokens ===== */
:root {
  --mc: #b07a3c;
  --mc-hover: #8f5f28;
  --mc-soft: rgba(176, 122, 60, 0.1);
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #d9d9d9;
}

/* ===== Typography: Inter primary (consistent Latin/Greek metrics), Jost fallback ===== */
body {
  font-family: 'Inter', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Skip Link ===== */
.ild-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--mc);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.ild-skip-link:focus {
  top: 0;
}

/* ===== Focus Visible (copper) ===== */
*:focus-visible {
  outline: 2px solid var(--mc) !important;
  outline-offset: 3px;
}

/* ===== Nav expansion ===== */
.nav {
  flex-wrap: wrap;
}
.nav-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-right: 1px solid #e0e0e0;
}
.nav-btn:last-of-type {
  border-right: none;
}
.nav-btn.active {
  background: var(--ink);
  color: #fff;
}

/* ===== Language Toggle in Nav ===== */
.ild-lang-toggle {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-left: 1px solid #e0e0e0;
  gap: 0;
}
.ild-lang-btn {
  background: none;
  border: none;
  font-family: 'Jost', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
  cursor: pointer;
  padding: 1rem 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.ild-lang-btn.active {
  font-weight: 600;
  color: var(--mc);
}
.ild-lang-sep {
  color: #ccc;
  font-size: 0.75rem;
  user-select: none;
}

/* ===== Hero ILD ===== */
.hero.section {
  padding-top: clamp(1rem, 4vh, 3rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  text-align: center;
}

/* ========== ILD Brand Mark (full-width hero wordmark) ========== */
.ild-brand-mark {
  margin: 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2rem, 6vh, 5rem);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
  white-space: nowrap;
}
.ild-brand-mark-text {
  font-family: 'Big Shoulders Display', 'Arial Narrow', 'Impact', sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2.5rem, 9.5vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
}

.ild-typed-wrapper {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  min-height: 2.2em;
  margin-top: clamp(1rem, 3vh, 2rem);
  margin-bottom: 1rem;
}
.ild-typed-cursor {
  color: var(--mc);
  animation: ild-blink 1s step-end infinite;
}
@keyframes ild-blink {
  50% { opacity: 0; }
}
.ild-tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.ild-lede {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ===== Delivery Pillars ===== */
.ild-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.ild-pillar {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
}
.ild-pillar-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mc);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.ild-pillar h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ild-pillar p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Capabilities Grid ===== */
.ild-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.ild-cap-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.ild-cap-card:hover {
  border-color: var(--mc);
}
.ild-cap-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ild-cap-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Credits Block ===== */
.ild-credits {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--mc-soft);
  border-left: 3px solid var(--mc);
  font-size: 0.875rem;
  line-height: 1.6;
}
.ild-credits p {
  margin-bottom: 0.25rem;
}
.ild-credits p:last-child {
  margin-bottom: 0;
}

/* ===== Project Images ===== */
.project-image {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}
.project-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Image Placeholders ===== */
.ild-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}
.ild-ph span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===== Archive ===== */
.ild-archive {
  margin-top: 3rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.ild-archive h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.ild-archive details {
  border-bottom: 1px solid var(--line);
}
.ild-archive details:first-of-type {
  border-top: 1px solid var(--line);
}
.ild-archive summary {
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.ild-archive summary::-webkit-details-marker {
  display: none;
}
.ild-archive summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: var(--mc);
}
.ild-archive details[open] > summary::after {
  content: '−';
}
.ild-archive ul {
  list-style: none;
  padding: 0 0 1rem;
}
.ild-archive li {
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.25rem 0;
  color: var(--muted);
}

/* ===== Process Grid ===== */
.ild-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.ild-process-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
}
.ild-process-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ild-process-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.ild-footnote {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muted);
}

/* ===== Contact ===== */
.ild-contact-info {
  margin-top: 1.5rem;
}
.ild-contact-info p.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.ild-contact-info p.value {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.ild-contact-info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ild-parent-line {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ===== Footer ===== */
.footer .ild-footer-wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .ild-pillars {
    grid-template-columns: 1fr;
  }
  .ild-cap-grid {
    grid-template-columns: 1fr;
  }
  .ild-process-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: wrap;
  }
  .nav-btn {
    font-size: 0.625rem;
    padding: 0.75rem 0.5rem;
  }
  .ild-lang-btn {
    padding: 0.75rem 0.35rem;
  }
}

/* ===== Print ===== */
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  .nav,
  .ild-skip-link,
  .ild-lang-toggle,
  .ild-typed-cursor {
    display: none !important;
  }
  details {
    display: block !important;
  }
  details > summary {
    display: block !important;
    font-weight: 600;
  }
  details > summary + * {
    display: block !important;
  }
  details[open] > summary + *,
  details > div,
  details > ul {
    display: block !important;
  }
  .ild-archive details > .ild-archive-content {
    display: block !important;
  }
  h1, h2, h3, h4, h5, h6, p, li, a, span {
    color: black !important;
  }
  a {
    text-decoration: underline !important;
  }
  article {
    break-inside: avoid;
  }
  .ild-cap-card,
  .ild-process-card,
  .ild-pillar {
    break-inside: avoid;
  }
  .ild-ph {
    background: white !important;
    border: 1px solid #ccc !important;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .ild-typed-cursor {
    animation: none;
    opacity: 1;
  }
}
