:root {
  --bg: #0c0c0d;
  --bg-soft: #141416;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b6b6b8;
  --line: rgba(255, 255, 255, 0.14);
  --accent-main: #ff6a2b;
  --accent-secondary: #2f7cff;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 106, 43, 0.1), transparent 35%),
    radial-gradient(
      circle at 90% 92%,
      rgba(47, 124, 255, 0.14),
      transparent 30%
    ),
    linear-gradient(140deg, #090909 0%, #111112 55%, #080808 100%);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  font-family: "Sora", "Segoe UI", sans-serif;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.9);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 120;
  transform: translate(-50%, -50%);
  transition:
    width 0.22s ease,
    height 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
  opacity: 0;
}

.custom-cursor.cursor-active {
  opacity: 1;
}

.custom-cursor.cursor-grow {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 106, 43, 0.55);
  background: rgba(255, 106, 43, 0.42);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  transition: background 0.4s ease;
  will-change: transform, translate;
}

.orb-one {
  width: 340px;
  height: 340px;
  top: -100px;
  right: 3vw;
  background: rgba(255, 106, 43, 0.45);
  animation: float 9s ease-in-out infinite;
}

.orb-two {
  width: 400px;
  height: 400px;
  bottom: -140px;
  left: -80px;
  background: rgba(47, 124, 255, 0.35);
  animation: float 11s ease-in-out infinite reverse;
}

body.accent-blue .orb-one {
  background: rgba(47, 124, 255, 0.42);
}

body.accent-blue .orb-two {
  background: rgba(255, 106, 43, 0.26);
}

body.accent-orange .orb-one {
  background: rgba(255, 106, 43, 0.48);
}

body.accent-orange .orb-two {
  background: rgba(47, 124, 255, 0.32);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  background: linear-gradient(
    90deg,
    var(--accent-main),
    var(--accent-secondary)
  );
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
  will-change: transform;
}

.btn-header {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent-main), #ff8d58);
  color: #101010;
  box-shadow: 0 16px 34px rgba(255, 106, 43, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

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

main {
  padding-top: 10px;
}

section {
  padding: 88px 0;
  position: relative;
}

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 58px;
  overflow: clip;
}

.kinetic-word {
  position: absolute;
  left: -2vw;
  top: 20%;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(6rem, 17vw, 14rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  opacity: 0.4;
  pointer-events: none;
  white-space: nowrap;
}

.kinetic-word-alt {
  top: auto;
  bottom: 20%;
  left: 14%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: end;
}

.hero-content {
  z-index: 2;
  max-width: 630px;
}

.eyebrow {
  margin-bottom: 16px;
  color: #d4d4d6;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 5.2rem);
  margin-bottom: 20px;
  line-height: 0.96;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.2em;
}

.word {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
}

.word.reveal {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.5s ease;
}

.hero-text {
  max-width: 56ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  position: relative;
  justify-self: end;
  width: min(520px, 46vw);
  transform: translate(4%, 6%);
  z-index: 3;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.06);
}

.hero-card {
  grid-column: 1;
  margin-top: 22px;
  max-width: 460px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.hero-card p + p {
  margin-top: 10px;
}

.hero-card li {
  margin: 7px 0;
}

.section-head h2,
.contact h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cv {
  padding-top: 56px;
}

.cv-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.cv-sticky {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.cv-sticky-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
}

.cv-sticky-year {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--accent-secondary);
  font-weight: 700;
}

.cv-sticky-role {
  margin: 8px 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.cv-sticky-company {
  margin: 0;
  color: var(--muted);
}

.cv-entries {
  display: grid;
  gap: 22px;
}

.cv-entry {
  min-height: 46vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  padding: 26px;
  color: var(--muted);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.cv-entry.is-active {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 43, 0.56);
}

.cv-entry h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.cv-entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cv-entry-logo {
  width: 100px;
  height: 100px;
  min-width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.96),
    rgba(236, 236, 238, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.24);
  filter: saturate(0.96) contrast(1.05);
}

.cv-entry-logo--dark {
  background: linear-gradient(
    160deg,
    rgba(27, 27, 30, 0.96),
    rgba(14, 14, 16, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

.cv-entry p {
  margin: 0;
}

.cv-role-timeline {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.cv-role-timeline li {
  line-height: 1.5;
}

.services {
  padding-top: 72px;
}

.accordion {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: clip;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-family: "Sora", "Segoe UI", sans-serif;
  padding: 20px 22px;
  cursor: pointer;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-panel p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  padding: 0 22px;
}

.accordion-item.is-open {
  border-color: rgba(255, 106, 43, 0.55);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel p {
  padding-bottom: 20px;
}

.about-content {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.about-quote {
  margin: 0;
  padding: 28px 24px;
  border-left: 3px solid var(--accent-main);
  background: rgba(255, 106, 43, 0.06);
  border-radius: 6px;
}

.about-quote p {
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

.contact-box {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  padding: 54px 20px;
}

.contact-box p {
  color: var(--muted);
}

.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-link {
  margin-top: 8px;
  display: inline-block;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--accent-main);
}

.contact-link:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  color: var(--muted);
}

.footer-wrap p {
  margin: 0;
}

.footer-wrap a {
  white-space: nowrap;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .hero-photo-wrap {
    width: auto;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    transform: translateY(0);
    z-index: 0;
  }

  .hero-card {
    grid-column: 1;
    max-width: unset;
    width: 100%;
    margin-top: -80px;
    padding: 20px;
    font-size: 0.92rem;
    z-index: 2;
  }

  .hero-card h2 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .hero-card p {
    margin: 8px 0;
    font-size: 0.88rem;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-sticky {
    position: sticky;
    top: 94px;
    z-index: 35;
    margin-bottom: 10px;
    background: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(10px);
  }

  .cv-entry {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .nav-wrap {
    min-height: 76px;
  }

  section {
    padding: 66px 0;
  }

  .kinetic-word {
    font-size: clamp(5rem, 24vw, 9rem);
  }
}

@media (max-width: 560px) {
  .btn-header {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}
