/* MondragonTech portfolio — Inland Empire practical craft */

:root {
  --ink: #1a211c;
  --ink-soft: #3d4a42;
  --muted: #5c6b62;
  --paper: #e8ebe4;
  --paper-deep: #d4dbd2;
  --sage: #6b8f71;
  --sage-deep: #4a6b52;
  --clay: #c4784a;
  --clay-deep: #a35e35;
  --line: rgba(26, 33, 28, 0.12);
  --hero-deep: #1e2a24;
  --hero-mid: #2f4238;
  --hero-light: #4a6354;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(107, 143, 113, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(196, 120, 74, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f0f2ed 40%, var(--paper-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay-deep);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #f2f5f0;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: rgba(242, 245, 240, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f7f5f1;
  background: var(--clay);
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.btn:hover {
  background: var(--clay-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(242, 245, 240, 0.45);
  color: #f2f5f0;
}

.btn-ghost:hover {
  background: rgba(242, 245, 240, 0.08);
  border-color: rgba(242, 245, 240, 0.75);
  color: #fff;
}

.site-header .btn {
  background: rgba(242, 245, 240, 0.12);
  border-color: rgba(242, 245, 240, 0.35);
  color: #f2f5f0;
}

.site-header .btn:hover {
  background: rgba(242, 245, 240, 0.2);
  color: #fff;
}

/* Hero — full-bleed plane */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4.5rem;
  color: #f2f5f0;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, var(--hero-deep) 0%, var(--hero-mid) 48%, var(--hero-light) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 235, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 235, 228, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: grid-drift 28s linear infinite;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 30%, rgba(196, 120, 74, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(107, 143, 113, 0.22), transparent 55%),
    linear-gradient(180deg, transparent 40%, rgba(26, 33, 28, 0.55) 100%);
  animation: wash-shift 14s ease-in-out infinite alternate;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

@keyframes wash-shift {
  from { opacity: 1; }
  to { opacity: 0.85; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-bottom: 0.5rem;
}

.brand-mark {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #f7f9f4;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(242, 245, 240, 0.95);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 235, 228, 0.78);
  max-width: 36ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s var(--ease) forwards;
}

.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.24s; }
.reveal.delay-3 { animation-delay: 0.36s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-tint {
  background: rgba(26, 33, 28, 0.04);
  border-block: 1px solid var(--line);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 1.05rem;
}

.section-lede.narrow {
  max-width: 36rem;
}

.section-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section-split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 3.5rem;
  }
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.plain-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--sage);
  border-radius: 1px;
}

/* Who */

.who-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.who-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.who-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.who-row p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: -0.02em;
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* Sample work — not a card cluster; one featured strip */

.sample {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 800px) {
  .sample {
    grid-template-columns: 1.05fr 1fr;
  }
}

.sample-visual {
  position: relative;
  min-height: 220px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f2f5f0;
  background:
    linear-gradient(145deg, #3a2a22 0%, #6b3f2e 45%, #8a5a3c 100%);
  overflow: hidden;
}

.sample-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 200, 160, 0.25), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.04) 18px,
      rgba(0, 0, 0, 0.04) 19px
    );
  pointer-events: none;
}

.sample-label,
.sample-name,
.sample-meta {
  position: relative;
  z-index: 1;
}

.sample-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 245, 240, 0.7);
  margin-bottom: 0.65rem;
}

.sample-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sample-meta {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: rgba(242, 245, 240, 0.72);
}

.sample-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.sample-body p {
  margin: 0;
  color: var(--ink-soft);
}

.sample-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--sage-deep);
  margin-top: 0.35rem;
  width: fit-content;
}

.text-link:hover {
  color: var(--clay-deep);
  text-decoration: underline;
}

/* Packages — rows, not cards */

.pkg-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.pkg-row {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
}

.pkg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.pkg-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.pkg-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: -0.02em;
}

.pkg-row > p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.pkg-meta {
  margin-top: 0.45rem !important;
  font-size: 0.9rem;
  color: var(--muted) !important;
}

/* Contact */

.contact {
  padding: 5.5rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(107, 143, 113, 0.14), transparent 60%),
    rgba(26, 33, 28, 0.03);
}

.contact-inner {
  max-width: 36rem;
}

.contact .section-lede {
  margin-inline: auto;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact .btn {
  margin-top: 0;
}

.btn-contact-secondary {
  background: transparent;
  border-color: rgba(26, 33, 28, 0.28);
  color: var(--ink);
}

.btn-contact-secondary:hover {
  background: rgba(26, 33, 28, 0.05);
  color: var(--ink);
  border-color: var(--ink);
}

.contact-meta {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-note {
  max-width: 32rem;
}

/* Motion: scroll reveal for sections */

.section .section-title,
.section .section-lede,
.section .plain-list,
.section .who-rows,
.section .steps,
.section .sample,
.section .pkg-rows,
.contact .contact-ctas {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.section.is-visible .section-title,
.section.is-visible .section-lede,
.section.is-visible .plain-list,
.section.is-visible .who-rows,
.section.is-visible .steps,
.section.is-visible .sample,
.section.is-visible .pkg-rows,
.contact.is-visible .contact-ctas {
  opacity: 1;
  transform: translateY(0);
}

.section.is-visible .section-lede { transition-delay: 0.06s; }
.section.is-visible .plain-list,
.section.is-visible .who-rows,
.section.is-visible .steps,
.section.is-visible .sample,
.section.is-visible .pkg-rows { transition-delay: 0.12s; }
.contact.is-visible .contact-ctas { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .section .section-title,
  .section .section-lede,
  .section .plain-list,
  .section .who-rows,
  .section .steps,
  .section .sample,
  .section .pkg-rows,
  .contact .contact-ctas {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero-grid,
  .hero-wash {
    animation: none;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 6rem 0 3.25rem;
    min-height: 92svh;
  }

  .section {
    padding: 3.75rem 0;
  }

  .pkg-head {
    flex-direction: column;
    gap: 0.15rem;
  }
}
