/* components.css — chrome shared by every page: scroll reveal, contact form,
   the team/image modal and the form notification toast. */

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* CONTACT */
.contact-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-sub {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.form-input,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  border-radius: 2px;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}

.form-submit:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}


/* Modal (team profile + enlarged image) */
.akmodal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.akmodal.open { display: flex; }
.team-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.akmodal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dimmer);
  font-size: 28px;
  line-height: 1;
  transition: color .2s;
}
.akmodal-close:hover { color: var(--text); }
.team-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.team-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-modal-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.team-modal-role {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--accent);
  margin-bottom: 4px;
}
.team-modal-exp {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.team-modal-about {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dim);
  line-height: 1.6;
}
.team-modal-qa {
  text-align: left;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.qa-block { margin-bottom: 18px; }
.qa-block:last-child { margin-bottom: 0; }
.qa-q {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.qa-a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-dim);
  line-height: 1.55;
}
.akmodal-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* NOTIFICATION */
#notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 12px 24px;
  border-radius: 2px;
  z-index: 30000;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
}

#notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* HERO MEDIA PANEL */
/* The image half of a hero: the About portrait, and on the home page the
   container the animated ETL pipeline sits in. */
.hero-image-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: grayscale(30%) contrast(1.1);
  animation: fadeIn 1s .5s both;
}

.hero-image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%, transparent 80%, var(--bg) 100%), linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
}

/* BANDED SECTION */
/* Tinted, bordered full-bleed band with a faint data-graphic backdrop.
   Used by the home Problem section and the About team section. */
.problem-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-section {
  position: relative;
  overflow: hidden;
}

.problem-section > .inner {
  position: relative;
  z-index: 1;
}

.problem-section::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.32;
}

.problem-section::before {
  right: -30px; top: -20px;
  width: 460px; height: 340px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Ccircle cx='40' cy='60' r='6' fill='%237b93c4'/%3E%3Ccircle cx='120' cy='140' r='6' fill='%23c9a96a'/%3E%3Ccircle cx='90' cy='220' r='6' fill='%235fc4b8'/%3E%3Ccircle cx='200' cy='90' r='6' fill='%23d98a7a'/%3E%3Ccircle cx='260' cy='180' r='6' fill='%237b93c4'/%3E%3Ccircle cx='330' cy='110' r='6' fill='%23c9a96a'/%3E%3Ccircle cx='300' cy='250' r='6' fill='%235fc4b8'/%3E%3Ccircle cx='170' cy='40' r='6' fill='%23d98a7a'/%3E%3C/svg%3E");
}
