/* Azul Ceballos Portfolio — Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

:root {
  --bg: #f8f8f8;
  --ink: #1a1a1a;
  --body: #3a3a3a;
  --mid: #555;
  --sub: #777;
  --label: #999;
  --line: #e2e2e2;
  --card: #fff;
  --ph: #ebebeb;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Libre Baskerville', serif;
  --max: 680px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* GATE */
#gate {
  position: fixed;
  inset: 0;
  background: var(--bg) url('Media_assets/welcome-animation-cycling-modes.gif') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.7s ease;
}
#gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
#gate .gate-inner {
  position: relative;
  z-index: 1;
}
#gate.out { opacity: 0; pointer-events: none; }

.gate-inner { text-align: center; }
.gate-welcome {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.gate-instruction {
  font-size: 15px;
  font-weight: 400;
  color: var(--mid);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.gate-row { display: flex; align-items: stretch; }
.gate-input {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  width: 220px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-input::placeholder { color: var(--label); }
.gate-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}
.gate-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.65rem 1.25rem;
  color: var(--sub);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.gate-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }
.gate-err {
  font-size: 14px;
  color: #a03030;
  margin-top: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gate-err.show { opacity: 1; }
.gate-hint {
  font-size: 14px;
  color: var(--label);
  margin-top: 3.5rem;
  letter-spacing: 0.04em;
}

/* SITE */
#site { opacity: 0; transition: opacity 0.9s ease 0.1s; }
#site.on { opacity: 1; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--sub);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active { color: var(--ink); }

/* HERO */
.hero {
  padding: 7rem 4rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-h1 {
  font-size: 68px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 3.5rem;
  max-width: 800px;
}
.hero-body {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 5rem;
  align-items: start;
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-emphasis {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 2rem;
}
.hero-para {
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--mid);
}
.hero-photo {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.03) brightness(1.02);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.06) 0%, transparent 55%);
}

/* SECTION */
.section {
  padding: 7rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.section--after-hero { padding-top: 4rem; }
.section--tight { padding-top: 0; }
.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 3.5rem;
  display: block;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* CARDS */
.card {
  cursor: pointer;
  transition: color 0.2s;
}
.card:hover { color: inherit; }
.card-img { width: 100%; overflow: hidden; position: relative; }
.card-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.65s ease;
  overflow: hidden;
}
.card-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:hover .card-img-inner { transform: scale(1.03); }
.card-img-3-2 { aspect-ratio: 3/2; }
.card-img-4-3 { aspect-ratio: 4/3; }

.card-body { padding: 1.25rem 0 0; }
.card-eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--sub);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card-title-lg {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* GRADIENTS */
.g-ai-emergence {
  /* Emergence + flow: trust & precision palette. Streams converge to one clear focal point. */
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.4) 35%, transparent 65%),
    linear-gradient(165deg, transparent 0%, rgba(71, 85, 105, 0.15) 30%, rgba(51, 65, 85, 0.25) 50%, rgba(30, 41, 59, 0.35) 70%, transparent 100%),
    linear-gradient(195deg, transparent 0%, rgba(71, 85, 105, 0.12) 40%, transparent 70%),
    linear-gradient(135deg, transparent 0%, rgba(100, 116, 139, 0.1) 35%, transparent 65%),
    linear-gradient(150deg, #94a3b8 0%, #64748b 30%, #475569 55%, #334155 85%, #1e293b 100%);
}
.g-cool { background: linear-gradient(150deg, #c0cce0 0%, #6878a8 50%, #384068 100%); }
.g-amber { background: linear-gradient(145deg, #ddd0a0 0%, #b89038 50%, #886010 100%); }
.g-slate { background: linear-gradient(155deg, #b8c4d4 0%, #6878a0 50%, #384060 100%); }
.g-sage { background: linear-gradient(150deg, #b8d0b0 0%, #5a9050 50%, #285030 100%); }
.g-blush { background: linear-gradient(145deg, #d8c0b8 0%, #b07868 50%, #784040 100%); }
.g-warm { background: linear-gradient(155deg, #d0c0b0 0%, #a08070 50%, #685040 100%); }
.g-forest { background: linear-gradient(150deg, #a8c0a4 0%, #508848 50%, #204020 100%); }
.g-terra { background: linear-gradient(148deg, #d0b898 0%, #a87040 50%, #703810 100%); }

/* FADE */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.25s; }
.d4 { transition-delay: 0.35s; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 2rem; }
.footer-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--sub);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--ink); }
.footer-copy { font-size: 14px; color: var(--label); }

/* ABOUT PAGE */
.about-intro,
.about-body { max-width: var(--max); }
.about-photo {
  border-radius: 40px 0 40px 0;
}
.about-break { margin-top: 3rem; }
.about-subhead {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 3rem 0 1rem;
}
.about-subhead:first-of-type { margin-top: 0; }
.about-callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.about-callout .about-subhead {
  margin: 0 0 1rem;
}
.about-callout .about-list {
  margin: 0;
  padding-left: 1.25rem;
}
.about-callout .about-list li {
  margin-bottom: 0.4rem;
}
.about-callout .about-list li:last-child { margin-bottom: 0; }
.about-list {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 2rem;
}
.about-list li {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.about-list li:last-child { margin-bottom: 0; }
.about-contact {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.about-contact-label {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 0.5rem;
}
.about-contact a {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.about-contact a:hover { color: var(--sub); }
.about-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.about-link:hover { color: var(--sub); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 48px; }
  .nav, .footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero, .section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-h1 { font-size: 38px; }
  .nav-links { gap: 1.25rem; }
  .footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
