@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ── CONFIGURATION & VARIABLES ── */
:root {
  --bg-page: #0B1215;
  --bg-card: #E7E7EB;
  --text: #0B1215;
  --border: #0B1215;
  --rule-thick: 2px solid var(--border);
  --rule-thin: 1px solid rgba(11, 18, 21, 0.15);
  --font-display: 'Spectral', serif;
  --font-body: 'Inter', sans-serif;
}

/* ── GLOBAL RESET ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  z-index: -100;
}


/* ── CONTAINER COMPONENT (THE CARD) ── */
.card {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  border: var(--rule-thick);
}

/* ── TOP UTILITY BAR (FOLIO BAR) ── */
.folio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-bottom: var(--rule-thick);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.folio-bar a {
  color: var(--text);
  text-decoration: none;
}

.folio-bar a:hover {
  opacity: 0.6;
}

/* ── HOMEPAGE: HERO HEADER ── */
header.index-header {
  padding: 1.5rem 1.25rem 1.35rem;
}

.name {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  margin-left: -0.04em;
}

.tagline-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tagline-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
}

/* ── STRUCTURAL LINES & DIVIDERS ── */
.divider {
  border-top: var(--rule-thick);
}


/* ── NAVIGATION LIST COMPONENT (BUTTON ROW) ── */
nav {
  display: grid;
}

.btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.25rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-bottom: var(--rule-thin);
}

.btn:hover {
  background: var(--text);
  padding-left: 1.5rem;
}

.btn:hover .btn-num,
.btn:hover .btn-label,
.btn:hover .btn-arrow {
  color: var(--bg-card);
  opacity: 1;
}

.btn-num {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.3;
  text-align: left;
}

.btn-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: right;
}

.back-link {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.back-link:hover {
  opacity: 0.55;
}

/* ── HEADINGS COMPONENT ── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: var(--rule-thick);
}

/* Subheadings inside page modules */
.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.85rem 1.25rem 0.6rem;
  opacity: 0.75;
  border-bottom: var(--rule-thin);
}


/* ── TEXT CONTENT COMPONENT ── */
.text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  padding: 1.1rem 1.25rem;
}

.text.justify { text-align: justify; }
.text.center  { text-align: center; }
.text p + p   { margin-top: 1rem; }
.text strong  { font-weight: 600; }

.text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text a:hover {
  opacity: 0.6;
}

mark {
  background-color: #d8d7d1;
  color: var(--text);
}

/* ── SECTION GAP (THICK BORDER BETWEEN SECTIONS) ── */
.section-gap {
  border-top: var(--rule-thick);
}

/* ── EQUIPMENT GRID COMPONENT ── */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
}

.equipment-item {
  text-align: center;
}

.equipment-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: var(--rule-thick);
  background: #fff;
}

.equipment-item p {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text);
  opacity: 0.7;
}

/* ── JUMP NAVIGATION COMPONENT ── */
.jump-nav {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border-bottom: var(--rule-thick);
}

.jump-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: var(--rule-thin);
}

.jump-link:last-child { border-bottom: none; }
.jump-link:hover      { opacity: 0.55; }
.jump-link span       { opacity: 0.35; font-size: 0.72rem; }

/* ── SERVICE RATES GRID COMPONENT ── */
.rates-grid {
  display: grid;
  gap: 0;
}

.rate-item {
  padding: 1rem 1.25rem;
  border-bottom: var(--rule-thin);
}

.rate-item:last-child { border-bottom: none; }

.rate-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.rate-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.rate-price {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--text);
  color: var(--bg-card);
  padding: 0.15rem 0.5rem;
  letter-spacing: 0;
}

.rate-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.rate-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
}

/* ── ADDONS COMPONENT ── */
.addons-list {
  display: grid;
  gap: 0;
  padding: 0.25rem 0;
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-bottom: var(--rule-thin);
  gap: 1rem;
}

.addon-item:last-child { border-bottom: none; }

.addon-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
}

.addon-price {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.6;
  white-space: nowrap;
}

/* ── MEDIA INTEGRATION COMPONENT (QR & EMBEDS) ── */
.qr-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.qr-wrapper img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.card-footer {
  padding: 0.85rem 1.25rem;
  border-top: var(--rule-thin);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  text-align: center;
}

.card-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── BTN BODY: label + description stack ── */
.btn-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.btn-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.55;
  letter-spacing: 0;
}

.btn:hover .btn-desc {
  color: var(--bg-card);
  opacity: 0.75;
}

/* ── SPLIT LAYOUT (index + project pages) ── */
.card--wide {
  max-width: 880px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 480px;
  align-items: stretch;
}

.split-left {
  display: flex;
  flex-direction: column;
  border-right: var(--rule-thick);
}

.split-right {
  display: flex;
  flex-direction: column;
}

.split-photo {
  position: relative;
  flex: 1;
  background: #c8c8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-photo-placeholder {
  position: absolute;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  text-align: center;
  padding: 1rem;
}


/* ── PROJECT DETAIL PAGE ── */
.split-layout--project .split-left {
  overflow-y: auto;
}

.project-header {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: var(--rule-thick);
}

.project-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.project-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.55;
}

.project-link:hover {
  opacity: 1;
}

.project-faq {
  padding: 0 1.25rem 1.25rem;
  border-top: var(--rule-thick);
  margin-top: auto;
}

.project-faq-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.85rem 0 0.6rem;
  border-bottom: var(--rule-thin);
  margin-bottom: 0.25rem;
}

.faq-item {
  padding: 0.75rem 0;
  border-bottom: var(--rule-thin);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.faq-a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.65;
  line-height: 1.5;
}

/* ── STATUS BAR ── */
.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(11, 18, 21, 0.7);
  border-top: var(--rule-thick);
  margin-top: auto;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── SERVICE PAGE SPLIT ── */
.split-layout--service .split-left,
.split-layout--service .split-right {
  overflow-y: auto;
}

/* ── ABOUT PAGE SPLIT ── */
.split-layout--about {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split-layout--about .faq-body {
  padding: 0 1.25rem 1.25rem;
}

/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule-thin);
}

.portfolio-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-right: var(--rule-thin);
  border-bottom: var(--rule-thin);
}

.portfolio-item:nth-child(3n) {
  border-right: none;
}

.portfolio-thumb {
  position: relative;
  width: 100%;
  background: #c8c8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-thumb--video  { aspect-ratio: 16 / 9; }
.portfolio-thumb--design { aspect-ratio: 1 / 1; }

.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-thumb-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11, 18, 21, 0.35);
  pointer-events: none;
}

.portfolio-meta {
  padding: 0.55rem 0.75rem;
  border-top: var(--rule-thin);
}

.portfolio-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}

.portfolio-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
}

.portfolio-item:hover .portfolio-thumb  { filter: brightness(0.85); }
.portfolio-item:hover .portfolio-meta   { background: var(--text); }
.portfolio-item:hover .portfolio-title  { color: var(--bg-card); }
.portfolio-item:hover .portfolio-sub    { color: var(--bg-card); opacity: 0.6; }

/* ── RESPONSIVE BREAKPOINTS ── */

@media (max-width: 620px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-left {
    border-right: none;
    border-bottom: var(--rule-thick);
  }

  .split-photo {
    min-height: 240px;
  }

  .card--wide {
    max-width: 580px;
  }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(2n) { border-right: none; }
  .portfolio-item:nth-child(odd) { border-right: var(--rule-thin); }

  .split-layout--about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .equipment-item p { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  #bg-video { display: none; }
}