/* ══════════════════════════════════════
   SPACE JUNK — OPTIRO DESIGN SYSTEM
   ══════════════════════════════════════ */

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

:root {
  --bg:        #080a08;
  --surface:   #0f110f;
  --surface2:  #151815;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --green:     #3ddc6e;
  --green-dim: rgba(61,220,110,0.12);
  --text:      #e6ede6;
  --muted:     #7a8a7a;
  --dim:       #3a463a;
  --sans:      'Inter', sans-serif;
  --serif:     'Fraunces', serif;
  /* legacy aliases for tool pages */
  --void:       #080a08;
  --shadow:     #0f110f;
  --shadow-mid: #141614;
  --shadow-lift:#1e221e;
  --bone:       #e6ede6;
  --ghost:      #9aaa9a;
  --mist:       #7a8a7a;
  --paper:      #080a08;
  --paper-alt:  #0f110f;
  --ink:        #e6ede6;
  --ink-mid:    #9aaa9a;
  --ink-dim:    #7a8a7a;
  --rule:       #2a302a;
  --rule-dark:  #343a34;
  --accent:     #3ddc6e;
  --accent-bg:  rgba(61,220,110,0.1);
}

html { scroll-behavior: smooth; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.6; }

::selection { background: var(--green); color: #080a08; }

body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.6; overflow-x: hidden; }

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

/* ══ NAV ══ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,10,8,0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-center > a,
.nav-center .nav-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
  cursor: pointer;
}

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

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 10px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--green);
  display: none;
  z-index: 200;
  border-radius: 0 0 6px 6px;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-cta {
  background: var(--green);
  color: #080a08;
  font-size: 12px;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ══ WRAPPER ══ */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══ GALLERY HERO ══ */
.gallery-hero {
  padding: 2rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 220px 160px;
  gap: 4px;
  border-radius: 10px;
  overflow: hidden;
}

.gp {
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gp:hover img { transform: scale(1.04); }
.gp:hover .gp-overlay { opacity: 1; }

.gp.tall { grid-row: 1 / 3; }

.gp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,220,110,0.08);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.gp-tag {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8,10,8,0.8);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ══ HERO TEXT ROW ══ */
.hero-text-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  gap: 3rem;
}

.hero-heading {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  max-width: 380px;
}

.hero-heading em {
  font-style: italic;
  color: var(--green);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.hero-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ══ BUTTONS ══ */
.btn-primary {
  background: var(--green);
  color: #080a08;
  font-size: 12px;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: opacity 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border2);
  transition: all 0.15s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ══ FULL DIVIDER ══ */
.full-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ══ TICKER ══ */
.ticker-wrap {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ticker-item::before {
  content: '✦';
  color: var(--dim);
  font-size: 8px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══ SECTIONS ══ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.section-label-text {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══ PROJECT ROWS ══ */
.project-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.prow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.prow:last-child { border-bottom: none; }
.prow:hover { background: var(--surface2); }

.prow-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.prow-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.prow-sub {
  font-size: 11px;
  color: var(--muted);
}

.prow-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ptag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.03em;
}

.pstatus {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.s-live  { background: rgba(61,220,110,0.1); color: var(--green); border: 1px solid rgba(61,220,110,0.2); }
.s-build { background: rgba(255,200,60,0.08); color: #f5c842; border: 1px solid rgba(255,200,60,0.15); }
.s-draft { background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }

.prow-arrow {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.15s;
}

.prow:hover .prow-arrow { color: var(--green); }

/* ══ TWO-COL ══ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ══ ABOUT CARD ══ */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.about-name em {
  font-style: italic;
  color: var(--green);
}

.about-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.fact:last-child { border-bottom: none; }
.fact-key { color: var(--muted); }
.fact-val { color: var(--text); font-weight: 500; }

/* ══ STACK CARD ══ */
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.stack-title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: all 0.15s;
  cursor: default;
}

.chip:hover { border-color: var(--border2); color: var(--text); }

.contact-rows {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.clink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
  cursor: pointer;
}

.clink:last-child { border-bottom: none; }
.clink:hover { color: var(--green); }
.clink-arrow { font-size: 12px; }

/* ══ PAGE HEADER ══ */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}

.page-title em {
  font-style: italic;
  color: var(--green);
}

/* ══ SECTION RULE ══ */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  margin: 1.5rem 0;
}

.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-rule-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══ PLACEHOLDER ══ */
.placeholder {
  border: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
  background: var(--surface);
  border-radius: 8px;
}

.placeholder-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.placeholder-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ══ FOOTER ══ */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-loc {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.footer-copy {
  font-size: 11px;
  color: var(--dim);
}

/* ══ PAGE CONTENT ══ */
.page-content { margin-bottom: 4rem; }

/* ══ MOBILE NAV ══ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(8,10,8,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
  z-index: 99;
  flex-direction: column;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 0.9rem 1.5rem;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-cta { color: var(--green); }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gp.tall { grid-row: auto; }
  .hero-text-row { flex-direction: column; gap: 1.5rem; }
  .hero-heading { max-width: 100%; }
  .hero-desc { max-width: 100%; }
  nav { padding: 0.75rem 1.25rem; }
  .wrapper { padding: 0 1.25rem; }
  footer { padding: 1.25rem; }
  .gallery-hero { padding: 1.25rem 1.25rem 0; }
  .section { padding: 2rem 1.25rem; }
}

@media (max-width: 640px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gp.tall { grid-row: auto; height: 240px; }
  .gp { height: 180px; }
  .prow { grid-template-columns: 1fr auto; gap: 0.75rem; }
  .prow-arrow { display: none; }
  .footer-links { display: none; }
  footer { justify-content: space-between; }
  .page-header { padding-left: 1rem; }
  .page-title { font-size: 1.6rem; }
}

/* ══ PHOTO GALLERY (photography, ddi) ══ */
.gallery-intro { max-width: 560px; font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 2rem; }

.series-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.series-label::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 4px var(--green); margin-right: 0.5rem; flex-shrink: 0; }
.series-label-inner { display: flex; align-items: center; gap: 0.5rem; }
.series-count { color: var(--dim); }

.photo-gallery { columns: 3 240px; column-gap: 4px; margin-bottom: 1.5rem; }
.photo-figure { break-inside: avoid; margin-bottom: 4px; position: relative; overflow: hidden; cursor: pointer; background: var(--surface2); border-radius: 4px; }
.photo-figure img { width: 100%; display: block; transition: transform 0.5s ease; }
.photo-figure:hover img { transform: scale(1.03); }
figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,10,8,0.9));
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.photo-figure:hover figcaption { transform: translateY(0); }
.fig-location { display: block; font-size: 10px; color: var(--green); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }
.fig-desc { font-size: 11px; color: rgba(230,237,230,0.8); line-height: 1.5; }

.gallery-footer {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
}
.gallery-footer p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 480px; }
.gallery-stat { text-align: right; flex-shrink: 0; }
.gallery-stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: var(--text); display: block; line-height: 1; }
.gallery-stat-label { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* ══ LIGHTBOX ══ */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,8,0.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox-img { max-width: 90vw; max-height: 82vh; object-fit: contain; display: block; }
.lightbox-caption { font-size: 11px; color: rgba(230,237,230,0.5); letter-spacing: 0.1em; text-align: center; }
.lightbox-caption strong { color: var(--green); font-weight: 400; margin-right: 0.5rem; }
.lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; background: none; border: 1px solid var(--border2); color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; padding: 0.4rem 0.8rem; cursor: pointer; transition: color 0.2s, border-color 0.2s; z-index: 1001; border-radius: 4px; }
.lightbox-close:hover { color: var(--text); border-color: var(--green); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(230,237,230,0.3); font-size: 1.5rem; cursor: pointer; padding: 1rem; transition: color 0.2s; z-index: 1001; }
.lightbox-nav:hover { color: var(--green); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 10px; color: rgba(230,237,230,0.2); letter-spacing: 0.18em; }

@media (max-width: 768px) {
  .photo-gallery { columns: 1; }
  .gallery-footer { flex-direction: column; }
  .gallery-stat { text-align: left; }
  .lightbox-nav { display: none; }
}
