/* =========================================================
   antoniogalganovotta.com — styles.css
   Dark theme · IBM Plex Mono + IBM Plex Sans · 2026
   ========================================================= */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:          #07080f;
  --bg-raised:   #0c0e1c;
  --bg-card:     #0f1120;
  --amber:       #ff6b35;
  --cyan:        #34d399;
  --emerald:     #34d399;
  --violet:      #a78bfa;
  --text:        #8ea3be;
  --text-mid:    #c1cfe0;
  --text-bright: #e8f0fe;
  --border:      rgba(255,255,255,.06);
  --border-amber: rgba(255,107,53,.22);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ─── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,8,15,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.125rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-bright);
  text-decoration: none;
}
.nav-logo::after {
  content: "_";
  color: var(--amber);
  animation: blink 1.2s step-end infinite;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  letter-spacing: .06em;
  color: #4a6080;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-link::before { content: "["; }
.nav-link::after  { content: "]"; }
.nav-link::before,
.nav-link::after  { opacity: 0; color: var(--amber); transition: opacity .15s; }
.nav-link:hover   { color: var(--text-bright); }
.nav-link:hover::before,
.nav-link:hover::after { opacity: 1; }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #07080f;
  background: var(--amber);
  padding: .5rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.nav-cta:hover {
  background: #ff8555;
  box-shadow: 0 0 16px rgba(255,107,53,.3);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,.022) 1px, transparent 0),
    linear-gradient(90deg, rgba(255,107,53,.022) 1px, transparent 0);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero-glow-r {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(255,107,53,.055) 0, transparent 65%);
  pointer-events: none;
}
.hero-glow-l {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 30vw;
  height: 40vh;
  background: radial-gradient(ellipse, rgba(52,211,153,.03) 0, transparent 70%);
  pointer-events: none;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,.5) 40%, rgba(255,107,53,.5) 60%, transparent);
  animation: scanDown 2.5s ease-out forwards;
  pointer-events: none;
}
.vertical-label {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.07);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  user-select: none;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-flag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp .5s ease .15s forwards;
}
.hero-flag .sep { color: rgba(255,255,255,.15); }
.hero-flag .loc { color: var(--cyan); opacity: .7; }
.hero-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .6s ease .3s forwards;
}
.hero-name .ln1,
.hero-name .ln2 {
  display: block;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}
.hero-name .ln1 { color: var(--text-bright); }
.hero-name .ln2 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232,240,254,.35);
}
.hero-role {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .6s ease .45s forwards;
}
.hero-role .prompt {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber);
  margin-right: .5rem;
}
.hero-role .divider {
  color: rgba(255,255,255,.18);
  margin: 0 .75rem;
}
.hero-desc {
  font-size: .9rem;
  color: #576a80;
  line-height: 1.75;
  max-width: 30rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .6s ease .6s forwards;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .6s ease .75s forwards;
}
.btn-solid {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #07080f;
  background: var(--amber);
  padding: .75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-solid:hover {
  background: #ff8555;
  box-shadow: 0 0 20px rgba(255,107,53,.3);
}
.btn-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  padding: .75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.25);
  color: var(--text-bright);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp .6s ease .9s forwards;
}
.stat-divider { width: 1px; background: var(--border); }
.stat-val {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-bright);
}
.stat-val.accent { color: var(--amber); }
.stat-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-top: .375rem;
}
.hero-vis { overflow: hidden; }

/* ─── IDENTITY STRIP ─────────────────────────────────────── */
.identity-section {
  background: var(--bg-raised);
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}
.identity-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.identity-left { display: flex; flex-direction: column; gap: .375rem; }
.identity-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-bright);
}
.identity-role { font-size: .85rem; color: var(--text); }
.identity-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.identity-link {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: #3d5068;
  text-decoration: none;
  transition: color .2s;
}
.identity-link:hover { color: var(--amber); }
.identity-link .arrow { color: var(--amber); opacity: 0; transition: opacity .15s; }
.identity-link:hover .arrow { opacity: 1; }

/* ─── ABOUT SECTION ──────────────────────────────────────── */
.about-section {
  background: var(--bg);
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-header { margin-bottom: 3rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-bio {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-bio strong { color: var(--text-mid); }
.about-motto {
  margin-top: .5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--amber);
  background: rgba(255,107,53,.04);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  color: var(--text-mid);
  letter-spacing: .02em;
}
.about-motto .motto-prompt {
  color: var(--amber);
  margin-right: .5rem;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pillar {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.pillar:last-child { border-bottom: none; padding-bottom: 0; }
.pillar-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--amber);
  opacity: .6;
  margin-bottom: .625rem;
}
.pillar-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .5rem;
}
.pillar-desc { font-size: .85rem; color: var(--text); line-height: 1.7; }

/* ─── SECTION COMMON ─────────────────────────────────────── */
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .7;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.section-eyebrow::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
  opacity: .5;
}
.services-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-bright);
  line-height: 1.2;
  max-width: 30rem;
}

/* ─── EXPERTISE / SERVICES SECTION ──────────────────────── */
.services-section {
  background: var(--bg-raised);
  padding: 6rem 2rem;
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-header { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.exp-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.svc-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  transition: background .2s, transform .2s;
  position: relative;
}
.svc-card:hover { background: #111525; transform: translateY(-4px); }
.svc-card.c1 { border-top-color: var(--cyan); }
.svc-card.c2 { border-top-color: var(--amber); }
.svc-card.c3 { border-top-color: var(--emerald); }
.svc-card.c4 { border-top-color: var(--violet); }
.svc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.18);
  margin-bottom: 1.75rem;
}
.svc-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  opacity: .7;
}
.svc-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .75rem;
}
.svc-desc { font-size: .85rem; color: var(--text); line-height: 1.7; }
.svc-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.svc-list li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  letter-spacing: .04em;
  color: #3d5068;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.svc-list li::before {
  content: "→";
  color: var(--amber);
  opacity: .5;
  font-size: .65rem;
}
.svc-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  transition: gap .15s;
}
.svc-link:hover { gap: .625rem; }

/* ─── THE STANDARD SECTION ───────────────────────────────── */
.standard-section {
  background: var(--bg);
  padding: 6rem 2rem;
}
.standard-inner { max-width: 1200px; margin: 0 auto; }
.standard-header { margin-bottom: 3rem; }
.standard-intro {
  font-size: .875rem;
  color: #576a80;
  line-height: 1.7;
  max-width: 32rem;
  margin-top: .875rem;
}
.standard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.std-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background .2s, transform .2s;
  position: relative;
}
.std-card:nth-child(1) { border-left-color: var(--amber); }
.std-card:nth-child(2) { border-left-color: var(--cyan); }
.std-card:nth-child(3) { border-left-color: var(--emerald); }
.std-card:nth-child(4) { border-left-color: var(--violet); }
.std-card:hover { background: #111525; transform: translateX(4px); }
.std-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.12);
  margin-bottom: 1.5rem;
}
.std-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  opacity: .65;
}
.std-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .975rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .625rem;
}
.std-desc { font-size: .85rem; color: var(--text); line-height: 1.7; }

/* ─── CONTACT SECTION ────────────────────────────────────── */
.contact-section {
  background: var(--bg-raised);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.contact-bg-text {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.02);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -.04em;
  line-height: 1;
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-sub { font-size: .875rem; color: var(--text); line-height: 1.7; max-width: 26rem; }
.contact-links { display: flex; flex-direction: column; gap: .75rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.contact-link.li  { border-left-color: #0a66c2; }
.contact-link.tw  { border-left-color: #e2e8f0; }
.contact-link.web { border-left-color: var(--amber); }
.contact-link:hover { background: #111525; transform: translateX(4px); }
.contact-link:hover.web { border-color: rgba(255,107,53,.3); border-left-color: var(--amber); }
.contact-link:hover.li  { border-color: rgba(10,102,194,.3); border-left-color: #0a66c2; }
.contact-link:hover.tw  { border-color: rgba(255,255,255,.15); border-left-color: #e2e8f0; }
.cl-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; opacity: .8; }
.cl-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-bright);
}
.cl-handle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: #3d5068;
  margin-top: 1px;
}
.cl-arrow {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  color: rgba(255,255,255,.2);
}
.contact-link:hover .cl-arrow { color: var(--amber); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: #2a3a4a;
}
.footer-network {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-network ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}
.footer-network ul li + li::before {
  content: "/";
  margin-right: .25rem;
  color: #1a2a3a;
}
.network-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1e2e3e;
}
.footer-network a,
.footer-social a {
  font-size: .72rem;
  color: #2a3a4a;
  text-decoration: none;
  transition: color .2s;
}
.footer-network a:hover,
.footer-social a:hover { color: var(--text); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes scanDown { 0% { top: 0; opacity: 1; } 85% { opacity: .25; } 100% { top: 100%; opacity: 0; } }
@keyframes fadeUp   { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .exp-grid     { grid-template-columns: repeat(2, 1fr); }
  .standard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-vis       { display: none; }
  .identity-inner { flex-direction: column; align-items: flex-start; }
  .about-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .exp-grid       { grid-template-columns: 1fr; }
  .standard-grid  { grid-template-columns: 1fr; }
  .contact-inner  { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}
@media (max-width: 640px) {
  .hero-inner,
  .identity-section,
  .about-section,
  .services-section,
  .standard-section,
  .contact-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
