/* ============================================================
   PAGE-SPECIFIC STYLES — about, capabilities, work, ai, contact
   ============================================================ */

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 0;
  border-bottom: var(--rule-muted);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-l);
  padding: var(--space-xl) var(--padding-x) var(--space-l);
  align-items: end;
}

.page-hero-label {
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-s);
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 7rem);
  word-break: normal;
  overflow-wrap: normal;
}

.page-sub {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  color: var(--fg-muted);
  max-width: 55ch;
  line-height: 1.6;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) var(--padding-x);
  border-bottom: var(--rule-muted);
}

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.about-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-m);
}

.about-image-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-m);
  padding: var(--space-2xl) var(--padding-x);
  border-bottom: var(--rule-muted);
}

.about-img {
  background: var(--surface);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.about-img-circle {
  background: var(--surface);
  aspect-ratio: 1;
  border-radius: 50%;
  align-self: center;
}

.about-values {
  padding: var(--space-2xl) var(--padding-x);
}

.about-values-title {
  font-size: clamp(2rem, 4vw, 5rem);
  margin-bottom: var(--space-xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0;
  border-top: var(--rule-muted);
}

.value-item {
  padding: var(--space-l);
  border-right: var(--rule-muted);
  border-bottom: var(--rule-muted);
}

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

.value-num {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: var(--space-s);
  opacity: 0.15;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-s);
  letter-spacing: -0.02em;
}

.value-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ============================================================
   CAPABILITIES PAGE
   ============================================================ */
.cap-page-intro {
  padding: var(--space-2xl) var(--padding-x);
  border-bottom: var(--rule-muted);
}

.cap-page-intro h2 {
  font-size: clamp(2rem, 4vw, 5.5rem);
  max-width: 18ch;
  margin-bottom: var(--space-xl);
}



/* ============================================================
   WORK PAGE
   ============================================================ */
.work-page-grid {
  padding: var(--space-l) var(--padding-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  border-bottom: var(--rule-muted);
  overflow: hidden;
  border-radius: var(--radius);
}

.work-item:nth-child(even) {
  direction: rtl;
}

.work-item:nth-child(even) > * {
  direction: ltr;
}

.work-item-img {
  aspect-ratio: 16/10;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}

.work-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-item:hover .work-item-img img {
  transform: scale(1.04);
}

.work-item-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-m);
  border-left: var(--rule-muted);
}

.work-item-category {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.work-item-title {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
}

.work-item-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 40ch;
}

.work-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-m);
  border-top: var(--rule-muted);
}

/* ============================================================
   PROJECT CASE STUDY PAGE
   ============================================================ */
.project-hero {
  padding-top: 7rem;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.project-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface);
  overflow: hidden;
}

.project-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Translucent dark overlay between image and text */
.project-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--padding-x) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  color: #ffffff;
}

.project-hero-content .page-eyebrow .mono-label,
.project-hero-content .project-title,
.project-hero-content .project-meta-label,
.project-hero-content .project-meta-value {
  color: #ffffff;
}

.project-hero-content .project-meta-label {
  color: rgba(255, 255, 255, 0.7);
}

.project-hero-content .rule-short {
  background: rgba(255, 255, 255, 0.3);
}

.project-hero-content .project-meta-bar {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.project-title {
  font-size: clamp(3rem, 8vw, 10rem);
}

.project-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--rule-muted);
  padding-top: var(--space-m);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: var(--space-l);
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.project-meta-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Process steps */
.process-section {
  padding: var(--space-2xl) var(--padding-x);
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: var(--rule-muted);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.12;
  line-height: 1;
}

.process-step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.process-step-title {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.process-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-l);
  margin-top: var(--space-m);
}

.process-img {
  flex: 0 1 auto;
  max-width: 100%;
  background: transparent;
  display: flex;
}

.process-img img {
  max-width: 100%;
  height: auto;
  object-fit: scale-down; /* Safety guarantee against overstretching */
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); /* Cinematic separation from background */
  display: block;
}

/* Split step layout */
.process-step-content--split {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

@media (min-width: 768px) {
  .process-step-content--split {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .process-step-text {
    flex: 1 1 50%;
  }
  
  .process-step-content--split .process-images {
    flex: 0 1 auto;
    margin-top: 0;
    justify-content: flex-end;
  }
}

.process-step-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

/* Tools used */
.tools-used {
  padding: var(--space-xl) var(--padding-x);
  border-top: var(--rule-muted);
  border-bottom: var(--rule-muted);
}

.tools-used-title {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  margin-bottom: var(--space-l);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-m);
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-m);
  border: var(--rule-muted);
  text-align: center;
}

.tool-icon {
  width: 40px; height: 40px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-name {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

/* Credits */
.credits-section {
  padding: var(--space-xl) var(--padding-x);
  border-bottom: var(--rule-muted);
}

.credits-title {
  font-size: clamp(1.2rem, 2vw, 2rem);
  margin-bottom: var(--space-l);
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.credit-item {
  display: flex;
  gap: var(--space-l);
  padding: var(--space-s) 0;
  border-bottom: var(--rule-muted);
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  min-width: 10rem;
}

.credit-name {
  font-size: 0.95rem;
}

/* ============================================================
   AI PAGE
   ============================================================ */
.ai-page-intro {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-2xl) var(--padding-x);
  border-bottom: 1px solid rgba(245,244,240,0.15);
}

.ai-page-intro h2 {
  font-size: clamp(2rem, 5vw, 7rem);
  color: var(--bg);
  margin-bottom: var(--space-xl);
}

.ai-page-intro .body-text {
  color: rgba(245,244,240,0.65);
}

.ai-tools-section {
  padding: var(--space-2xl) var(--padding-x);
  border-bottom: var(--rule-muted);
}

.ai-tools-title {
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  margin-bottom: var(--space-xl);
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0;
  border-top: var(--rule-muted);
}

.ai-tool-card {
  padding: var(--space-l);
  border-right: var(--rule-muted);
  border-bottom: var(--rule-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.ai-tool-card:nth-child(3n) {
  border-right: none;
}

.ai-tool-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.ai-tool-name {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ai-tool-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
  flex: 1;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 8rem);
}

.contact-left {
  padding: var(--space-l) var(--padding-x) var(--space-2xl) var(--padding-x);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-l);
  border-right: var(--rule-muted);
}

.contact-headline {
  font-size: clamp(2.5rem, 5vw, 7rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: var(--space-m);
  border-bottom: var(--rule-muted);
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contact-info-value {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 500;
}

.contact-right {
  /* Offset right side slightly downward by adding 5rem */
  padding: calc(var(--space-l) + 5rem) var(--padding-x) var(--space-2xl) var(--padding-x);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-l);
}

.contact-right h2 {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  margin-bottom: var(--space-s);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: var(--rule-muted);
  border-bottom: var(--rule);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color var(--duration-fast) ease;
  resize: none;
}

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

.form-textarea {
  min-height: 140px;
}

/* ============================================================
   OVERVIEW COMPONENT
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ============================================================
   RESPONSIVE — PAGES
   ============================================================ */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-intro { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) { direction: ltr; }
  .work-item-info { border-left: none; border-top: var(--rule-muted); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: var(--rule-muted); }
  .contact-right { padding-top: var(--space-2xl); }
  .ai-tool-card:nth-child(even) { border-right: var(--rule-muted); }
  .ai-tool-card:nth-child(3n) { border-right: none; }
  .value-item:nth-child(even) { border-right: var(--rule-muted); }
  .value-item:nth-child(3n) { border-right: none; }
  .value-item:nth-child(3n) { border-right: var(--rule-muted); }
  .value-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 700px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-label { display: none; }
  .project-meta-bar { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 1fr; }
  .ai-tool-card:nth-child(n) { border-right: none; }
  .value-item:nth-child(n) { border-right: none; }
  .value-item:nth-child(n) { border-right: none; }
}
