:root {
  --ink: #17202b;
  --muted: #5d675f;
  --line: #e4ddd2;
  --paper: #f6f3ee;
  --white: #fffcf8;
  --navy: #142433;
  --accent: #1c6b62;
  --header: 4.4rem;
  --gutter: clamp(1.15rem, 3.5vw, 3.5rem);
  --max: 72rem;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #102033 url("../img/tech-bg.jpg") center top / cover no-repeat fixed;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(246, 243, 238, 0.06) 0, rgba(246, 243, 238, 0.16) 26rem, rgba(246, 243, 238, 0.86) 42rem, rgba(246, 243, 238, 0.92) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
}

body.nav-open { overflow: hidden; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #0f5c56;
  outline-offset: 3px;
}

::selection {
  background: #0d1b2a;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: #fff;
  padding: 0.55rem 0.8rem;
}

.skip:focus { top: 0.7rem; }

section[id] { scroll-margin-top: calc(var(--header) + 0.6rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header);
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(214, 226, 234, 0.32);
  backdrop-filter: blur(12px);
}

.nav-toggle { position: relative; z-index: 3; }

.site-header.is-scrolled { box-shadow: inset 0 -1px 0 rgba(20, 36, 51, 0.12); }

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #31404d;
}

.site-nav a.is-active { color: var(--ink); }

.nav-wa {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #128c4a;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.hero {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1.6rem, 3.5vw, 2.8rem) var(--gutter) clamp(1.4rem, 3vw, 2.4rem);
}

.hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.34);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.1);
  backdrop-filter: blur(2px);
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(15rem, 58vw);
  aspect-ratio: 3 / 3.85;
  padding: 0.55rem;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, #f7f4ee, #0f5c56 55%, #0d1b2a) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.72),
    0 28px 60px rgba(13, 27, 42, 0.16);
  animation: portrait-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}

.title {
  margin: 0.85rem 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d3c4a;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}

.facts span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy > * {
  animation: enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.4s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.48s; }

.hero h1::after {
  content: "";
  display: block;
  width: 4.2rem;
  height: 2px;
  margin-top: 0.85rem;
  background: #0f5c56;
  transform-origin: left center;
  animation: grow 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kicker {
  margin: 0 0 0.7rem;
  color: #0f5c56;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.pass-name,
.channel strong {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 4.15rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.reel {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.reel span {
  display: flex;
  align-items: flex-end;
  min-height: 4.7rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), transparent 46%),
    var(--c);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.35s + var(--i) * 0.07s);
}

.lede {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: #2b3641;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn svg { width: 1.05rem; height: 1.05rem; }

.btn-wa { background: #128c4a; color: #fff; }
.btn-ig { background: #1c1424; color: #fff; }
.btn-mail { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.cv {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.cv-copy,
.principles {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 10px 30px rgba(18, 23, 29, 0.04);
}

.cv-copy p { margin: 0 0 0.85rem; color: #2c3844; }

.cv-copy h3,
.principles h3 {
  margin: 1.1rem 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f5c56;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #f3f6f6;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}

.principles h3 { margin-top: 0; }

.principles ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li + li {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.principles strong { display: block; margin-bottom: 0.25rem; }

.principles span { color: var(--muted); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.8rem 1.2rem;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.timeline h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.when {
  margin: 0.15rem 0 0;
  color: #0f5c56;
  font-size: 0.84rem;
  font-weight: 700;
}

.where {
  margin: 0.2rem 0 0.3rem;
  color: #31404d;
  font-weight: 600;
  font-size: 0.92rem;
}

.timeline p:last-child { margin: 0; color: var(--muted); }

.certs {
  margin: 0.9rem 0 0;
  padding: 1rem 1.15rem 1rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #2c3844;
}

.certs li + li { margin-top: 0.4rem; }

.channel em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
}

.pass {
  position: relative;
  padding: 1.25rem;
  border-radius: 28px;
  color: #f4f7fb;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 92, 86, 0.45), transparent 36%),
    linear-gradient(165deg, #17324a, #0d1b2a 55%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pass-top,
.pass-mosaic {
  position: relative;
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}

.pass-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pass-live i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.16);
}

.pass-name {
  margin: 1.3rem 0 0.35rem;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.88;
}

.pass-role {
  margin: 0 0 1.1rem;
  color: rgba(244, 247, 251, 0.76);
  font-size: 0.95rem;
}

.pass-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.pass-mosaic span {
  display: grid;
  place-items: end start;
  min-height: 4.4rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--c);
  font-size: 0.78rem;
  font-weight: 700;
}

.band {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.2rem) var(--gutter);
}

.band-tight { padding-top: 0; }

.section-intro { max-width: 40rem; margin-bottom: 1.5rem; }

.section-intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 0.95;
}

.section-intro p:last-child {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.traits,
.roles,
.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.trait,
.roles li {
  margin: 0;
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(18, 23, 29, 0.04);
}

.trait h3,
.roles h3,
.work h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.trait p,
.roles p,
.work p { margin: 0; color: var(--muted); }

.roles .role-meta {
  margin: 0.55rem 0 0;
  color: #0f5c56;
}

.trait { padding: 0.7rem 0.7rem 1.15rem; }
.trait h3,
.trait p { padding: 0 0.45rem; }

.trait-art {
  position: relative;
  height: 9.5rem;
  border-radius: 18px;
  overflow: hidden;
}

.art-net {
  background: linear-gradient(160deg, #12324a, #0f5c56);
}

.art-net span {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
}

.art-net span:nth-child(1) { inset: 22% 18%; }
.art-net span:nth-child(2) { inset: 32% 28%; background: rgba(255, 255, 255, 0.14); }
.art-net span:nth-child(3) {
  width: 2.2rem;
  height: 2.2rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 0;
}

.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  padding: 1.2rem;
  background: linear-gradient(160deg, #1a3f72, #17324a);
}

.art-bars span {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.88);
}

.art-bars span:nth-child(1) { height: 42%; opacity: 0.45; }
.art-bars span:nth-child(2) { height: 68%; opacity: 0.7; }
.art-bars span:nth-child(3) { height: 92%; }

.art-nodes {
  background: linear-gradient(160deg, #312e81, #0f5f78);
}

.art-nodes span,
.art-nodes i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.art-nodes span:nth-child(1) { width: 1.1rem; height: 1.1rem; left: 18%; top: 30%; }
.art-nodes span:nth-child(2) { width: 1.5rem; height: 1.5rem; left: 46%; top: 22%; }
.art-nodes span:nth-child(3) { width: 1.15rem; height: 1.15rem; right: 16%; bottom: 24%; }
.art-nodes i {
  width: 58%;
  height: 2px;
  left: 22%;
  top: 48%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(18deg);
}

.roles { list-style: none; padding: 0; }

.roles li { padding: 1.25rem 1.2rem 1.35rem; }

.roles em {
  font-style: normal;
  font-weight: 800;
  color: #0f5c56;
  letter-spacing: 0.08em;
}

.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.work {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 11.5rem;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 42%),
    var(--c);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(13, 27, 42, 0.08);
}

.work-wide { grid-column: span 2; grid-row: span 2; min-height: 24rem; }

@media (min-width: 981px) {
  .works .work:nth-child(8),
  .works .work:nth-last-child(-n + 2) { grid-column: span 2; }
}

.work-no {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.72;
}

.work h3 {
  margin-top: auto;
  font-size: clamp(1.5rem, 2vw, 2rem);
  padding-top: 1.5rem;
}

.work-wide h3 { font-size: clamp(2.2rem, 3vw, 3rem); }

.work p { color: rgba(255, 255, 255, 0.84); max-width: 28rem; }

.work::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -2.5rem;
  top: -2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.contact .section-intro { text-align: center; margin-left: auto; margin-right: auto; }

.icon-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(20, 36, 51, 0.16);
  transition: transform 0.2s ease;
}

.app-icon svg { width: 1.65rem; height: 1.65rem; }
.app-icon:hover { transform: translateY(-4px); }

.app-mail { background: var(--navy); }
.app-wa { background: #128c4a; }
.app-ig { background: linear-gradient(145deg, #5b3a78, #b35a3a); }

.site-footer {
  background: var(--navy);
  color: rgba(255, 252, 248, 0.86);
  text-align: center;
  padding: 0.95rem 1.25rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

@keyframes portrait-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  animation: enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.roles .reveal:nth-child(2) { animation-delay: 0.08s; }
.roles .reveal:nth-child(3) { animation-delay: 0.16s; }
.channels .reveal:nth-child(2) { animation-delay: 0.08s; }
.channels .reveal:nth-child(3) { animation-delay: 0.16s; }

.js .works.reveal .work {
  opacity: 0;
  transform: translateY(14px);
}

.js .works.reveal.is-in {
  animation: none;
  opacity: 1;
  transform: none;
}

.js .works.reveal.is-in .work {
  animation: enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js .works.reveal.is-in .work:nth-child(2) { animation-delay: 0.04s; }
.js .works.reveal.is-in .work:nth-child(3) { animation-delay: 0.08s; }
.js .works.reveal.is-in .work:nth-child(4) { animation-delay: 0.12s; }
.js .works.reveal.is-in .work:nth-child(5) { animation-delay: 0.16s; }
.js .works.reveal.is-in .work:nth-child(6) { animation-delay: 0.2s; }
.js .works.reveal.is-in .work:nth-child(7) { animation-delay: 0.24s; }
.js .works.reveal.is-in .work:nth-child(8) { animation-delay: 0.28s; }
.js .works.reveal.is-in .work:nth-child(9) { animation-delay: 0.32s; }
.js .works.reveal.is-in .work:nth-child(10) { animation-delay: 0.36s; }

@media (max-width: 980px) {
  .cv,
  .traits,
  .roles,
  .channels,
  .works { grid-template-columns: 1fr 1fr; }

  .work-wide { grid-column: span 2; grid-row: auto; min-height: 16rem; }

  .reel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }

  .site-nav {
    z-index: 2;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
    padding: calc(var(--header) + 1.5rem) var(--gutter) 2rem;
    background: var(--navy);
    transform: translateY(-102%);
    transition: transform 0.28s ease;
    overflow: auto;
  }

  .site-nav:not(.is-open) { visibility: hidden; }

  .site-nav.is-open {
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    color: #fff;
    font-family: var(--sans);
    font-size: 1.65rem;
    font-weight: 600;
  }

  .nav-wa {
    color: #fff !important;
    background: #128c4a;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
  }

  .hero-main,
  .cv,
  .traits,
  .roles,
  .channels,
  .works,
  .facts,
  .timeline li { grid-template-columns: 1fr; }

  .work-wide { grid-column: auto; }

  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .app-icon { width: 4.1rem; height: 4.1rem; }

  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after { background: var(--ink); }

  .site-nav.is-open ~ .nav-toggle .nav-toggle-lines,
  body.nav-open .nav-toggle-lines,
  body.nav-open .nav-toggle-lines::before,
  body.nav-open .nav-toggle-lines::after { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav,
  .channel { transition: none; }
  .portrait,
  .hero-copy > *,
  .hero h1::after,
  .reel span,
  .js .reveal,
  .js .works.reveal .work,
  .js .reveal.is-in,
  .js .works.reveal.is-in .work {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
