/* ─── Scroll progress bar ─── */
.progress-bar {
  width: 100vw;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.08s linear;
}

/* ─── Nav text hover ─── */
.nav-link-desktop {
  transition: opacity 0.4s ease;
}

.nav-text-wrapper {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link-desktop:hover .nav-text-wrapper {
  transform: translateY(-100%);
}

.nav-desktop-link-wrapper:hover .nav-link-desktop {
  opacity: 0.35;
}

.nav-desktop-link-wrapper:hover .nav-link-desktop:hover {
  opacity: 1;
}

/* ─── Scroll-triggered animation base states ─── */
[data-animate="up"] {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

[data-animate="left"] {
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

[data-animate].in-view {
  transform: none;
  opacity: 1;
}

[data-animate][data-delay="1"].in-view { transition-delay: 0.08s; }
[data-animate][data-delay="2"].in-view { transition-delay: 0.18s; }
[data-animate][data-delay="3"].in-view { transition-delay: 0.28s; }
[data-animate][data-delay="4"].in-view { transition-delay: 0.38s; }

/* ─── Hero page-load animations ─── */
.hero-name-animate {
  transform: translateY(100%);
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-desc-animate {
  transform: translateY(20px);
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.45s forwards;
}

.hero-bottom .hero-label-animate {
  transform: translateX(20px);
  opacity: 0;
}
.hero-bottom .hero-label-animate:nth-child(1) { animation: heroFadeLeft 0.6s ease 0.38s forwards; }
.hero-bottom .hero-label-animate:nth-child(2) { animation: heroFadeLeft 0.6s ease 0.48s forwards; }
.hero-bottom .hero-label-animate:nth-child(3) { animation: heroFadeLeft 0.6s ease 0.58s forwards; }
.hero-bottom .hero-label-animate:nth-child(4) { animation: heroFadeLeft 0.6s ease 0.68s forwards; }

@keyframes heroSlideUp  { to { transform: translateY(0); } }
@keyframes heroFadeUp   { to { transform: translateY(0); opacity: 1; } }
@keyframes heroFadeLeft { to { transform: translateX(0); opacity: 1; } }

/* ─── Logo text mark ─── */
.logo-mark-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

/* ─── Hero name SVG ─── */
.big-logo-image-wrapper.first-line {
  width: 260px;
}

/* ─── Hero top group spacing ─── */
.hero-top { gap: 1rem; }

/* ─── Work arrow hover ─── */
.work-link { cursor: pointer; }

.work-arrow {
  width: 2rem;
  height: 2rem;
  opacity: 0.5;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.work-link:hover .work-arrow {
  transform: translate(4px, -4px);
  opacity: 1;
}

/* ─── Article read-more hover ─── */
.view-more-text-wrapper {
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
}
.article-link:hover .view-more-text-wrapper {
  transform: translateY(0);
}

/* ─── Minimal button underline ─── */
.minimal-button .line-fill {
  width: 0%;
  transition: width 0.32s ease;
}
.minimal-button:hover .line-fill {
  width: 100%;
}

/* ─── Contact CTA hover ─── */
.contact-underline {
  transition: width 0.45s ease;
}
.contact-button:hover .contact-underline {
  width: 100% !important;
}

/* ─── Mobile menu: hide CLOSE by default ─── */
.mobile-menu-text:last-child {
  display: none;
}

/* ─── Work card inner layout ─── */
.work-inner-grid {
  display: flex;
  gap: 2rem;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
}
.work-inner-grid .work-col-left  { flex: 0 0 35%; }
.work-inner-grid .work-col-right { flex: 1; }

/* ─── Project card cinematic backgrounds ───────────────────────────────────
   Images live in  portfolio/assets/
   background-color is the fallback shown when no image is present.
   ─────────────────────────────────────────────────────────────────────── */

.project-card-1 {
  background-color: #080812;
  background-image: url('../assets/nexus.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-2 {
  background-color: #08120a;
  background-image: url('../assets/omni-agent.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-3 {
  background-color: #12100a;
  background-image: url('../assets/omni-rag.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-4 {
  background-color: #080c12;
  background-image: url('../assets/infra-os.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-5 {
  background-color: #100814;
  background-image: url('../assets/codeforge-ai.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-6 {
  background-color: #081210;
  background-image: url('../assets/cybersheild-ai.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card-7 {
  background-color: #121208;
  background-image: url('../assets/insightflow-ai.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(225deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ─── Stack tags ─── */
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.stack-tag {
  font-family: 'PT Mono', monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.38);
  padding: 0.22rem 0.62rem;
  line-height: 1.4;
}

/* ─── Project detail in project card ─── */
.project-detail-block {
  display: none;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  margin-top: 2rem;
}
.work-content-wrapper:hover .project-detail-block {
  display: flex;
}

/* ─── Project page card height — override 50rem min-height ─── */
.work-content-wrapper:has(.project-card-grid) {
  min-height: auto;
  padding: 3rem 2rem;
  justify-content: flex-start;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  color: #fff;
  min-height: 55svh;
  padding: 10rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  border-bottom: 1px solid var(--primary--charcoal);
}

/* ─── Section divider ─── */
.section-line {
  width: 100%;
  height: 1px;
  background-color: var(--primary--charcoal);
  margin: 0;
}

/* ─── About page — compositional grid ─── */
.about-label-col    { grid-column: 1 / 4; }
.about-content-bio  { grid-column: 5 / 11; }
.about-content-wide { grid-column: 5 / 13; }

.about-section-index {
  font-family: 'PT Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-color--neutral-dark);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.about-bio-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ─── About — cinematic visual break ─── */
.about-cinematic-break {
  width: 100%;
  min-height: 50svh;
  position: relative;
  overflow: hidden;
  background-color: #08080f;
}

.about-break-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(225deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 88px 88px;
}

.about-break-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0f0f0f 0%,
    transparent 22%,
    transparent 78%,
    #0f0f0f 100%
  );
}

.about-break-caption {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  font-family: 'PT Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.16);
}

/* ─── About — expertise ─── */
.expertise-list {
  display: flex;
  flex-direction: column;
}

.expertise-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.expertise-index {
  font-family: 'PT Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-color--neutral-dark);
  flex: 0 0 2rem;
  padding-top: 0.2rem;
}

.expertise-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 540px;
}

/* ─── About — stack ─── */
.about-stack-grid {
  display: flex;
  flex-direction: column;
}

.about-stack-group {
  display: flex;
  align-items: baseline;
  gap: 4rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.about-stack-group:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-stack-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color--neutral-dark);
  flex: 0 0 128px;
}

.about-stack-items {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--text-color--neutral);
  line-height: 1.7;
}

/* ─── Contact form — Formspree integration ─── */

/* Field-level validation: only show after the user has left a field */
.form-input.touched:invalid {
  border-bottom-color: rgba(220, 80, 80, 0.45);
}

/* Override Webflow's grey/pink feedback boxes */
.w-form-done,
.w-form-fail {
  background-color: transparent;
  padding: 1.5rem 0 0;
  margin-top: 0;
  text-align: left;
}

.w-form-done .mono-text {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

.w-form-fail .mono-text {
  color: rgba(210, 75, 75, 0.7);
  letter-spacing: 0.08em;
}

/* Disabled submit state */
.form-submit-button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ─── Contact page ─── */
.contact-links-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: var(--primary--white);
  transition: color 0.22s;
}

.contact-link-item:hover {
  color: var(--text-color--neutral);
}

.contact-link-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color--neutral-dark);
  flex: 0 0 auto;
  margin-right: 2rem;
}

.contact-link-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  flex: 1;
}

.contact-link-arrow {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  opacity: 0.4;
  transition: opacity 0.22s, transform 0.22s;
}

.contact-link-item:hover .contact-link-arrow {
  opacity: 1;
  transform: rotate(45deg);
}

/* ─── Projects page ─── */
.projects-intro {
  max-width: 600px;
}

/* ─── Projects page card grid (overrides base work-inner-grid) ─── */
.project-card-grid {
  gap: 5rem;
  align-items: flex-start;
  justify-content: flex-start;
}
.project-card-grid .work-col-left  { flex: 0 0 28%; }
.project-card-grid .work-col-right { flex: 0 0 42%; }

.project-number {
  font-family: 'PT Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-color--neutral-dark);
  margin-bottom: 1rem;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ─── Footer current page ─── */
.w--current .medium-text {
  color: var(--text-color--neutral-dark);
}

/* ─── Contact page — editorial layout ─── */
.contact-statement {
  grid-column: 4 / 11;
  padding: 5rem 0 2rem;
}

.contact-outreach-list {
  display: flex;
  flex-direction: column;
}

.contact-outreach-item {
  display: flex;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-outreach-category {
  font-family: 'PT Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color--neutral-dark);
  flex: 0 0 220px;
  padding-top: 0.2rem;
}

.contact-outreach-desc {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  color: var(--text-color--neutral);
  line-height: 1.65;
  max-width: 520px;
}

.contact-direct-address {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--primary--white);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.22s;
}

.contact-direct-address:hover {
  color: var(--text-color--neutral);
}

/* ─── Responsive ─── */
@media screen and (max-width: 991px) {
  .work-inner-grid .work-col-left { flex: 0 0 40%; }
  .project-card-grid { gap: 3rem; }
  .project-card-grid .work-col-left  { flex: 0 0 35%; }
  .project-card-grid .work-col-right { flex: 0 0 50%; }
  .page-hero { padding: 9rem 1rem 3rem; }
  .about-label-col    { grid-column: 1 / 3; }
  .about-content-bio  { grid-column: 3 / 9; }
  .about-content-wide { grid-column: 3 / 9; }
  .about-cinematic-break { min-height: 38svh; }
  .contact-statement { grid-column: 3 / 11; }
  .contact-outreach-category { flex: 0 0 180px; }
}

/* ─── Contact form column layout ─── */
.contact-block-wrapper { gap: 2.5rem; }

@media screen and (max-width: 991px) {
  .content-wrapper.intro .item-block { grid-column: 1 / -1 !important; }
}

@media screen and (max-width: 767px) {
  .work-inner-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .work-inner-grid .work-col-left,
  .work-inner-grid .work-col-right { flex: 1 1 auto; width: 100%; }

  .big-logo-image-wrapper.first-line { width: 168px; }

  .expertise-item { gap: 1.5rem; }
  .about-label-col,
  .about-content-bio,
  .about-content-wide { grid-column: 1 / -1; }
  .about-cinematic-break { min-height: 32svh; }
  .about-stack-group { flex-direction: column; gap: 0.5rem; padding: 1.5rem 0; }
  .about-stack-label { flex: none; }

  .contact-link-title { font-size: clamp(1.25rem, 5vw, 2rem); }
  .contact-statement { grid-column: 1 / -1; padding: 3rem 0 1.5rem; }
  .contact-outreach-item { flex-direction: column; gap: 0.75rem; padding: 2rem 0; }
  .contact-outreach-category { flex: none; }

  .hero-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem 2.5rem;
  }

  .page-hero { min-height: 40svh; padding: 7rem 1rem 2.5rem; }
}

@media screen and (max-width: 479px) {
  .big-logo-image-wrapper.first-line { width: 138px; }
  .project-meta-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-bottom { gap: 0.5rem 2rem; }
}
