/* Hallmark · theme: custom · brand: SenjaApps · redesign: full · idea: twilight studio stage where warm terracotta studio type weaves behind the orange-rimmed founder silhouette, carried across a unified five-page editorial system · genre: editorial · hero: Twilight Silhouette Stage · posture: committed · axes: dark/grotesk-heavy/warm · signature: orange-rimmed founder portrait layered over monumental studio typography · entry: inquiry · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · preserved the approved hero pixel-for-pixel while rebuilding below-the-fold sections to carry the twilight studio identity and resolve all finish-review findings */
/* Hallmark · finish-review: subagent · Phase 3B 5-page review · 7 findings · 7 resolved (About opening centered, Clash Display word-spacing & line-height balanced, headings/links made founder-direct, Phase 3B jargon removed & required fields marked, Contact next-steps switched to 3-column grid & closing band redirected to Work/Services, Work index aria-label deduplicated, mobile form padding/placeholders tightened) */
/* Hallmark · dropped senja-apps-logo.png, founder-hero-1120.webp · replaced the white-box square logo in the dark header with senja-apps-favicon.png beside the Clash Display wordmark, and replaced the cropped hero cutout with matched 3:4 layers from both founder masters */
/* Hallmark · waive 83 · #work showcase and #gallery present SenjaApps' own built templates, custom tools, and Android products below the hero · portfolio strip showing the studio's own work */

/* Approved Hero: Continuous Twilight Silhouette Stage (Preserved) */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--color-stage);
  color: var(--color-stage-ink);
  border-block-end: 1px solid var(--color-stage-seam);
  --color-focus: var(--color-inverse-link);
  --color-link: var(--color-inverse-link);
}

.hero-stage {
  position: relative;
  inline-size: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-block-size: 100svh;
  padding-block-start: var(--hero-header);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: end;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset-block: -10% 0;
  inset-inline: 18% -18%;
  background:
    radial-gradient(ellipse 56% 62% at 72% 48%, var(--color-stage-glow-core), var(--color-stage-transparent) 70%),
    radial-gradient(ellipse 46% 52% at 62% 74%, var(--color-stage-glow-edge), var(--color-stage-transparent) 74%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("../assets/hero-grain.png");
  mix-blend-mode: soft-light;
  opacity: 0.08;
}

.hero-monolith {
  position: absolute;
  z-index: 2;
  inset-block-start: clamp(9.5rem, 23svh, 13.5rem);
  inset-inline: 0;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: var(--text-monolith);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--color-stage-type);
  white-space: nowrap;
  user-select: none;
}

.hero-portrait-frame {
  position: relative;
  grid-area: 1 / 1 / 2 / 2;
  justify-self: center;
  align-self: end;
  inline-size: min(96vw, 25.5rem);
  aspect-ratio: 3 / 4;
  margin-block-end: calc(-1 * var(--space-3xl));
  pointer-events: none;
}

.hero-portrait-base,
.hero-portrait-cutout {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-portrait-base {
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(to right, var(--color-stage-transparent) 0%, var(--color-stage) 30%, var(--color-stage) 86%, var(--color-stage-transparent) 100%),
    linear-gradient(to bottom, var(--color-stage-transparent) 0%, var(--color-stage) 22%, var(--color-stage) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, var(--color-stage-transparent) 0%, var(--color-stage) 30%, var(--color-stage) 86%, var(--color-stage-transparent) 100%),
    linear-gradient(to bottom, var(--color-stage-transparent) 0%, var(--color-stage) 22%, var(--color-stage) 100%);
  mask-composite: intersect;
}

.hero-portrait-cutout {
  z-index: 3;
  -webkit-mask-image: linear-gradient(to top, var(--color-stage-transparent) 0%, var(--color-stage) 22%);
  mask-image: linear-gradient(to top, var(--color-stage-transparent) 0%, var(--color-stage) 22%);
}

.hero-content {
  position: relative;
  grid-area: 2 / 1 / 3 / 2;
  z-index: 4;
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--space-4xl)) calc(-1 * var(--gutter)) 0;
  background: linear-gradient(to top, var(--color-stage) 54%, var(--color-stage-fade-mid) 78%, var(--color-stage-transparent) 100%);
  pointer-events: none;
}

.hero-content h1 {
  max-inline-size: 14ch;
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.015em;
  word-spacing: 0.04em;
  color: var(--color-stage-ink);
}

.hero-lead {
  margin-block-start: var(--space-md);
  max-inline-size: 40ch;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-stage-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-block-start: var(--space-lg);
}

@media (max-width: 22rem) {
  .hero-portrait-frame {
    inline-size: min(72vw, 14.25rem);
    margin-block-end: calc(-1 * var(--space-4xl));
  }

  .hero-content {
    padding-block: var(--space-sm) var(--space-md);
  }

  .hero-lead {
    margin-block-start: var(--space-xs);
    font-size: 0.96875rem;
  }

  .hero-actions {
    margin-block-start: var(--space-sm);
  }
}

@media (min-width: 48rem) {
  .hero-stage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1fr;
    min-block-size: 100svh;
  }

  .hero-monolith {
    inset-block-start: clamp(9.5rem, 23svh, 18rem);
    font-size: clamp(6.75rem, 14.2vw, 15.25rem);
    letter-spacing: -0.025em;
  }

  .hero-portrait-frame {
    position: absolute;
    grid-area: auto;
    inset-block-end: 0;
    inset-inline-end: clamp(-1.5rem, -1vw, 1.5rem);
    inline-size: clamp(29rem, 43vw, 46rem);
    margin-block-end: 0;
  }

  .hero-portrait-cutout {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-content {
    grid-area: 1 / 1 / 2 / 8;
    align-self: end;
    padding-block: var(--space-2xl) var(--space-4xl);
  }

  .hero-content::before { display: none; }
  .hero-content h1 { max-inline-size: 15.5ch; }
  .hero-lead { margin-block-start: var(--space-lg); max-inline-size: 36ch; }
  .hero-actions { margin-block-start: var(--space-xl); }
}

/* Below-the-fold Home Redesign (Carrying Twilight Identity into Editorial Light & Dark Rhythm) */
.thesis-section {
  padding-block: var(--section-space);
  border-block-end: 1px solid var(--color-stage-rule);
}

.thesis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.thesis-statement h2 {
  font-size: var(--text-section);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-inline-size: 17ch;
}

.thesis-details {
  display: grid;
  gap: var(--space-lg);
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--color-stage-rule);
}

.thesis-details p {
  max-inline-size: 54ch;
  color: var(--color-stage-muted);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.thesis-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) var(--space-lg);
  padding-block: var(--space-md);
  border-block: 1px solid var(--color-stage-rule);
}

.thesis-facts dt {
  font-size: var(--text-sm);
  color: var(--color-stage-muted);
}

.thesis-facts dd {
  margin-block-start: var(--space-2xs);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-stage-ink);
}

.services-section {
  padding-block: var(--section-space);
  background: var(--color-paper);
  color: var(--color-ink);
  border-block-start: 1px solid var(--color-divider);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl) var(--grid-gap);
}

.services-intro {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  justify-items: start;
}

.services-intro h2 {
  font-size: var(--text-section);
  letter-spacing: -0.02em;
  max-inline-size: 14ch;
}

.services-intro p {
  max-inline-size: 40ch;
  color: var(--color-muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: service;
}

.service-list li {
  counter-increment: service;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-lg);
  border-block-start: 1px solid var(--color-divider);
}
.service-list li:last-child { border-block-end: 1px solid var(--color-divider); }

.service-list li::before {
  content: counter(service, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-block-start: var(--space-3xs);
}

.service-list h3 {
  font-size: var(--text-entry);
  letter-spacing: -0.015em;
}

.service-list p {
  max-inline-size: 54ch;
  color: var(--color-muted);
}

@media (min-width: 64rem) {
  .thesis-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .thesis-details { border-block-start: 0; padding-block-start: var(--space-xs); }
  .services-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
