:root {
  --ink: #0c1222;
  --ink-soft: #3a4558;
  --muted: #6b7588;
  --paper: #eef2f4;
  --paper-2: #e4eaee;
  --surface: rgba(255, 255, 255, 0.72);
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --accent-ink: #0a4f4a;
  --line: rgba(12, 18, 34, 0.1);
  --shadow: 0 24px 60px rgba(12, 18, 34, 0.08);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 600px at 92% 8%, rgba(15, 118, 110, 0.12), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(12, 18, 34, 0.06), transparent 55%),
    linear-gradient(180deg, #f7fafb 0%, var(--paper) 40%, #e8eef2 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -8%;
  background: rgba(45, 212, 191, 0.35);
}

.orb-b {
  width: 360px;
  height: 360px;
  top: 55%;
  right: -6%;
  background: rgba(15, 118, 110, 0.22);
  animation-delay: -6s;
}

.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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(238, 242, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 242, 244, 0.92);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--accent-ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 2.5rem) 4.5rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-identity {
  width: 100%;
}

.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero-name-row h1 {
  min-width: 0;
  flex: 1;
}

.hero-photo {
  flex: 0 0 auto;
  width: clamp(140px, 22vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-left: auto;
  border: 4px solid rgba(15, 118, 110, 0.35);
  box-shadow:
    0 0 0 12px rgba(20, 184, 166, 0.12),
    0 28px 60px rgba(12, 18, 34, 0.14);
  background: linear-gradient(145deg, #0f766e, #134e4a);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.name-line {
  display: block;
}

.name-line.accent {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.hero-role {
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.role-sep {
  margin: 0 0.35rem;
  color: var(--muted);
}

.hero-lead {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem clamp(1.25rem, 4vw, 2.5rem);
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(228, 234, 238, 0.55));
  z-index: -1;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.service-grid,
.skills-grid,
.work-grid {
  display: grid;
  gap: 1.15rem;
}

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

.service,
.skill {
  padding: 1.5rem 1.4rem;
  border-top: 1px solid var(--line);
}

.service h3,
.skill h3,
.work-body h3,
.timeline-item h4 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service p,
.skill p,
.work-body p {
  margin: 0;
  color: var(--ink-soft);
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter.is-active,
.filter:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.work-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item.is-hidden {
  display: none;
}

.work-visual {
  aspect-ratio: 1024 / 434;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.v-festival {
  background-image: url("images/work-festival.png");
}

.v-vpn {
  background-image: url("images/work-hexa.png");
}

.v-vinny {
  background-image: url("images/work-vinny.png");
}

.v-soft {
  background-image: url("images/work-soft.png");
}

.v-ria {
  background-image: url("images/work-ria.jpg");
}

.v-translate {
  background-image: url("images/work-translate.jpg");
}

.work-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.work-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-link {
  margin-top: auto;
  padding-top: 0.65rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.testimonials-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.testimonials-score strong {
  color: var(--accent);
}

.testimonials-platform {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.testimonials-copy {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.testimonials-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.testimonials-cta .text-link {
  margin-top: 0;
  padding-top: 0;
}

.testimonials-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.testimonials-points li {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 2px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.article-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.article-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-item p {
  margin: 0;
  color: var(--ink-soft);
}

.timeline {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
}

.timeline-label {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.timeline-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item .when {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.where {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.where strong {
  color: var(--ink);
  font-weight: 700;
}

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

.highlight-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
  background: rgba(20, 184, 166, 0.08);
}

.cta-band {
  padding-bottom: 5.5rem;
}

.cta-inner {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(12, 18, 34, 0.96), rgba(15, 70, 66, 0.94));
  color: #eef6f5;
  box-shadow: var(--shadow);
}

.cta-inner .eyebrow {
  color: var(--accent-bright);
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.cta-inner .section-lead {
  color: rgba(238, 246, 245, 0.78);
  max-width: 36rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-details a {
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.35rem;
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-details a:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

.availability {
  margin: 0.75rem 0 0;
  color: rgba(238, 246, 245, 0.65);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(238, 246, 245, 0.7);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(238, 246, 245, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.1);
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--ink);
  justify-self: start;
  margin-top: 0.35rem;
}

.cta-inner .btn-primary:hover {
  background: var(--accent-bright);
  color: var(--ink);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-bright);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-name-row h1 {
    flex: none;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-photo {
    width: clamp(132px, 38vw, 180px);
    margin-left: 0;
    align-self: flex-start;
  }

  .service-grid,
  .skills-grid,
  .work-grid,
  .articles-grid,
  .timeline,
  .contact-grid,
  .testimonials-layout,
  .testimonials-points {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(238, 242, 244, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 2.75rem;
  }

  .hero-name-row {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 3.75rem);
  }

  .hero-photo {
    width: min(148px, 42vw);
  }

  .hero-title {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
