/* z3itt — Jack-inspired portfolio design (vanilla) */

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

:root {
  --bg: #0c0c0c;
  --text: #d7e2ea;
  --text-muted: rgba(215, 226, 234, 0.65);
  --heading-gradient: linear-gradient(180deg, #4ec5c7 0%, #5ee6e6 45%, #bbccd7 100%);
  --contact-gradient: linear-gradient(135deg, #2a9d9f 0%, #5ee6e6 50%, #3db8b8 100%);
  --white: #ffffff;
  --dark: #0c0c0c;
  --border-light: rgba(12, 12, 12, 0.15);
  --border-card: rgba(94, 230, 230, 0.28);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --radius-xl: clamp(40px, 5vw, 60px);
  --radius-lg: clamp(32px, 4vw, 50px);
  --accent: #5ee6e6;
  --accent-strong: #3dd9d9;
  --accent-muted: rgba(94, 230, 230, 0.35);
  --accent-soft: rgba(94, 230, 230, 0.1);
  --font-bamboly: "Bamboly Demo", "Kanit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html:lang(tr) {
  font-feature-settings: "locl" 1;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Kanit", "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

.site-wrapper {
  overflow-x: clip;
}

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

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

.hero-heading {
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Site nav (landing + shared) ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 3vw, 2.5rem);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 226, 234, 0.08);
}

.site-nav-logo {
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  flex-shrink: 0;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 1.35rem);
  flex-wrap: nowrap;
}

.site-nav-links a {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--accent);
}

.page-home .beyond-hero {
  padding-top: 0;
}

/* ── Beyond Hero (dark theme) ── */
.beyond-hero {
  position: relative;
  width: 100%;
  height: 145vh;
  min-height: 640px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(94, 230, 230, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(100, 105, 115, 0.12), transparent),
    var(--bg);
  overflow: hidden;
}

.beyond-character,
.beyond-character-img {
  display: none;
}

.hero-profile {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: auto;
  width: max-content;
  max-width: min(92vw, 520px);
}

.hero-profile-img {
  width: clamp(260px, 42vw, 380px);
  height: clamp(260px, 42vw, 380px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(94, 230, 230, 0.12);
}

.hero-availability-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 226, 234, 0.2);
  background: rgba(12, 12, 12, 0.65);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.hero-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(215, 226, 234, 0.25);
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hero-action-btn:hover {
  border-color: rgba(94, 230, 230, 0.45);
  background: rgba(94, 230, 230, 0.08);
  transform: translateY(-2px);
}

.hero-action-bot-img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .beyond-hero {
    height: 155vh;
  }

  .hero-profile-img {
    width: clamp(340px, 32vw, 480px);
    height: clamp(340px, 32vw, 480px);
  }

  .hero-action-btn {
    width: 54px;
    height: 54px;
    font-size: 1.1rem;
  }

  .hero-action-bot-img {
    width: 26px;
    height: 26px;
  }
}

.beyond-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  pointer-events: none;
}

.beyond-hero-main {
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  min-height: 0;
  padding: clamp(5.5rem, 14vh, 7.5rem) 1rem 2rem;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .beyond-hero-main {
    padding: clamp(19.5rem, 54vh, 30rem) 1rem 0;
  }
}

.beyond-sticky .hero-profile {
  pointer-events: auto;
}

.beyond-title-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(10vh, 16vh, 18vh);
  pointer-events: none;
}

.beyond-layer {
  position: absolute;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(4.5rem, 22vw, 18rem);
  line-height: 0.85;
  user-select: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

.beyond-layer-0 {
  color: #646973;
  transform: translateY(18px);
}

.beyond-layer-1 {
  color: #1a1a1e;
  transform: translateY(12px);
}

.beyond-layer-2 {
  color: rgba(94, 230, 230, 0.45);
  transform: translateY(6px);
}

.beyond-layer-front {
  position: relative;
  background: linear-gradient(180deg, #d7e2ea 0%, #5ee6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .beyond-layer-0 { transform: translateY(36px); }
  .beyond-layer-1 { transform: translateY(24px); }
  .beyond-layer-2 { transform: translateY(12px); }
}

.beyond-words {
  grid-row: 2;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3vw 0.25vh;
  transform: translateY(2vh);
}

@media (min-width: 768px) {
  .beyond-words {
    padding: 0 5vw 0.5vh;
    transform: translateY(3vh);
  }
}

.beyond-words-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .beyond-words-col {
    gap: 0.5rem;
  }
}

.beyond-words-right {
  align-items: flex-end;
  text-align: right;
}

.beyond-word {
  font-family: "Poppins", "Kanit", sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 4.5vw, 5rem);
  line-height: 1.1;
  color: rgba(215, 226, 234, 0.55);
  text-transform: lowercase;
  user-select: none;
  transition: transform 0.05s linear, opacity 0.05s linear;
  will-change: transform, opacity;
}

.beyond-status {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 25;
}

/* Track holds 4 identical copies, so -25% advances exactly one copy and loops seamlessly. */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.brand-marquee {
  width: 100%;
  background: rgba(215, 226, 234, 0.04);
  border-top: 1px solid rgba(215, 226, 234, 0.08);
  border-bottom: 1px solid rgba(215, 226, 234, 0.08);
  overflow: hidden;
  padding: 1.25rem 0;
}

@media (min-width: 768px) {
  .brand-marquee {
    padding: 1.75rem 0;
  }
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.brand-marquee-text {
  flex-shrink: 0;
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #646973, #5ee6e6, #bbccd7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  line-height: 1;
  padding-right: 0.35em;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.availability .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}

.availability.is-online .dot { background: #43b581; }
.availability.is-idle .dot { background: #faa61a; }
.availability.is-dnd .dot { background: #f04747; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 4vw, 3rem);
  border-radius: 999px;
  background: var(--contact-gradient);
  box-shadow: 0 4px 24px rgba(94, 230, 230, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  outline: 2px solid rgba(94, 230, 230, 0.45);
  outline-offset: -2px;
  color: #0a1214;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, opacity 0.2s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(94, 230, 230, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0.95;
}

.btn-live-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: clamp(0.75rem, 1.5vw, 0.875rem) clamp(2rem, 3vw, 2.5rem);
  border-radius: 999px;
  border: 2px solid var(--border-card);
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  transition: background 0.2s ease, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-live-project:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-live-project:focus-visible,
.btn-contact:focus-visible,
.btn-ghost-light:focus-visible,
.btn-add-discord:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Filled accent counterpart to .btn-live-project; border keeps both the same height. */
.btn-add-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 1.5vw, 0.875rem) clamp(1.5rem, 2.4vw, 2rem);
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 55%, #2da0a2 100%);
  color: #06201f;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  white-space: nowrap;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-add-discord svg {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-add-discord:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(94, 230, 230, 0.28);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  border: 2px solid rgba(45, 160, 162, 0.45);
  color: #1a6b6d;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost-light:hover {
  background: rgba(94, 230, 230, 0.12);
  border-color: var(--accent);
  color: #0d5c5e;
}

.lang-switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 72px;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(94, 230, 230, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.lang-switch-toggle .toggle-bg {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--accent-soft);
  transition: transform 0.25s var(--ease-out);
}

.lang-switch-toggle.active-tr .toggle-bg { transform: translateX(0); }
.lang-switch-toggle.active-en .toggle-bg { transform: translateX(100%); }

.lang-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.lang-switch-toggle.active-tr .opt-tr,
.lang-switch-toggle.active-en .opt-en {
  color: var(--accent);
}

.scroll-marquee-section {
  background: var(--bg);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(2.5rem, 5vw, 2.5rem);
  overflow: hidden;
}

.scroll-marquee-row {
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.scroll-marquee-row:last-child {
  margin-bottom: 0;
}

.scroll-marquee-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}

.scroll-marquee-track img {
  width: 420px;
  height: 270px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .scroll-marquee-track img {
    width: 280px;
    height: 180px;
  }
}

.about-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 3vw, 2.5rem);
}

.about-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.about-deco-tl {
  top: 4%;
  left: clamp(1%, 2vw, 4%);
  width: clamp(120px, 14vw, 210px);
}

.about-deco-bl {
  bottom: 8%;
  left: clamp(3%, 6vw, 10%);
  width: clamp(100px, 12vw, 180px);
}

.about-deco-tr {
  top: 4%;
  right: clamp(1%, 2vw, 4%);
  width: clamp(120px, 14vw, 210px);
}

.about-deco-br {
  bottom: 8%;
  right: clamp(3%, 6vw, 10%);
  width: clamp(130px, 14vw, 220px);
}

.about-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  max-width: 640px;
}

.about-title {
  font-size: clamp(3rem, 12vw, 10rem);
}

.about-text {
  color: var(--text);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  max-width: 560px;
  text-wrap: pretty;
}

.about-animated-text {
  display: none;
}

.about-contact-btn {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.services-light-section {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 3vw, 2.5rem);
}

.services-light-title {
  font-weight: 900;
  text-align: center;
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 1.1;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, #2a9d9f 0%, #5ee6e6 50%, #1a6b6d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-list {
  max-width: 64rem;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border-light);
}

.service-row:first-child {
  border-top: 1px solid var(--border-light);
}

.service-num {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 8.75rem);
  line-height: 1;
  flex-shrink: 0;
  min-width: clamp(3rem, 12vw, 8rem);
}

.service-content h3 {
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.service-content p {
  font-weight: 300;
  line-height: 1.65;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

.services-more-wrap {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.projects-section {
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: clamp(-2.5rem, -4vw, -3.5rem);
  position: relative;
  z-index: 10;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.projects-kicker {
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(0.4rem, 1vw, 0.75rem);
}

.projects-title {
  font-size: clamp(3rem, 12vw, 10rem);
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.projects-layout {
  max-width: 76rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 7rem);
}

/* ── Project entry: collage one side, copy the other, alternating ── */
.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.project-entry:nth-child(even) .project-visual {
  order: 2;
}

.project-entry:nth-child(even) .project-info {
  order: 1;
}

.project-visual {
  min-width: 0;
}

.project-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Collage stage ── */
.project-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse 60% 50% at 50% 52%, rgba(94, 230, 230, 0.12), transparent 70%);
}

.collage-card {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  background: #111;
}

/* Landscape app windows */
.collage-wide .collage-hero {
  width: 82%;
  left: 9%;
  top: 20%;
  transform: rotate(-2deg);
  z-index: 6;
}

.collage-wide .collage-sat-a {
  width: 46%;
  right: 0;
  top: 3%;
  transform: rotate(6deg);
  z-index: 4;
}

.collage-wide .collage-sat-b {
  width: 44%;
  left: 0;
  bottom: 4%;
  transform: rotate(-7deg);
  z-index: 7;
}

.collage-wide .collage-sat-c {
  width: 34%;
  right: 4%;
  bottom: 9%;
  transform: rotate(5deg);
  z-index: 5;
}

/* Single-screenshot projects */
.collage-solo {
  aspect-ratio: 4 / 3;
}

.collage-solo .collage-hero {
  width: 88%;
  left: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-2deg);
  z-index: 6;
}

/* Portrait phone screens */
.collage-tall .collage-hero {
  width: 33%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.collage-tall .collage-sat-a {
  width: 25%;
  left: 1%;
  top: 5%;
  transform: rotate(-9deg);
  z-index: 4;
}

.collage-tall .collage-sat-b {
  width: 24%;
  right: 1%;
  top: 8%;
  transform: rotate(9deg);
  z-index: 5;
}

.collage-tall .collage-sat-c {
  width: 22%;
  left: 5%;
  bottom: 3%;
  transform: rotate(-13deg);
  z-index: 3;
}

.collage-tall .collage-sat-d {
  width: 22%;
  right: 4%;
  bottom: 1%;
  transform: rotate(11deg);
  z-index: 3;
}

.collage-tall .collage-sat-e {
  width: 18%;
  left: 24%;
  bottom: 6%;
  transform: rotate(15deg);
  z-index: 7;
}

/* Narrow desktop / tablet: stack the entry but keep the scattered collage */
@media (max-width: 900px) {
  .project-entry,
  .project-entry:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .project-entry:nth-child(even) .project-visual,
  .project-entry:nth-child(even) .project-info {
    order: 0;
  }

  .project-collage {
    max-width: 34rem;
    margin-inline: auto;
  }
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.9rem 0 0.35rem;
  padding: 0;
}

.project-tags li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.project-disclaimer {
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(215, 226, 234, 0.45);
}

.project-num {
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.project-cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.project-name {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}


.project-desc {
  font-weight: 300;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  max-width: 34rem;
}

.contact-section {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}

.contact-desc {
  color: var(--text-muted);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.site-footer {
  border-top: 1px solid rgba(215, 226, 234, 0.1);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(215, 226, 234, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: var(--accent-soft);
  border-color: rgba(94, 230, 230, 0.45);
  color: var(--accent);
}

.footer-bot-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in[data-fade-x="-80"] { transform: translateX(-80px); }
.fade-in[data-fade-x="80"] { transform: translateX(80px); }
.fade-in[data-fade-x="-80"].is-visible,
.fade-in[data-fade-x="80"].is-visible { transform: translateX(0); }

.page-services .services-page-hero {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.page-services .services-page-hero .hero-heading {
  font-size: clamp(2.5rem, 10vw, 8rem);
  margin-bottom: 1.5rem;
}

.page-services .services-page-sub {
  color: var(--text-muted);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

.page-services .services-catalog-section {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.page-services .service-card {
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.page-services .service-card:hover {
  border-color: rgba(12, 12, 12, 0.3);
  transform: translateY(-2px);
}

.page-services .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.page-services .service-icon-mobile {
  gap: 0.35rem;
  font-size: 1.1rem;
}

.page-services .service-card h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}

.page-services .service-card p {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.65;
}

.page-services .process-section {
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -2rem;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.page-services .process-section .hero-heading {
  font-size: clamp(2rem, 8vw, 6rem);
  text-align: center;
  margin-bottom: 1rem;
}

.page-services .process-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.process-timeline {
  position: relative;
  max-width: 960px;
  margin: 3rem auto 0;
  padding: 0;
}

.page-services .process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(94, 230, 230, 0.35) 6%,
    rgba(94, 230, 230, 0.35) 94%,
    transparent
  );
}

.process-timeline-item {
  position: relative;
  width: 50%;
  padding-bottom: 2.75rem;
  border: none;
}

.process-timeline-item:last-child {
  padding-bottom: 0;
}

.process-timeline-item:nth-child(odd) {
  padding-right: 3rem;
}

.process-timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 3rem;
}

.process-timeline-item:nth-child(odd) .process-step {
  margin-left: auto;
  text-align: right;
}

.process-timeline-item:nth-child(even) .process-step {
  margin-right: auto;
  text-align: left;
}

.process-timeline-item::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 230, 230, 0.12), 0 0 18px rgba(94, 230, 230, 0.45);
  z-index: 2;
}

.process-timeline-item:nth-child(odd)::after {
  right: -7px;
}

.process-timeline-item:nth-child(even)::after {
  left: -7px;
}

.process-step {
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(94, 230, 230, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 400px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 230, 230, 0.35);
  box-shadow: 0 8px 28px rgba(94, 230, 230, 0.15);
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(94, 230, 230, 0.25);
  flex-shrink: 0;
  margin-bottom: 0;
  -webkit-text-fill-color: currentColor;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

.process-timeline-item:nth-child(odd) .process-num {
  margin-left: auto;
}

.process-step h3 {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.process-step p {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0;
}

.page-services .services-cta-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.page-services main {
  padding-top: 4.5rem;
}

.page-services .site-nav-links a:hover,
.page-services .site-nav-links a.active {
  color: var(--accent);
}

.page-services .service-card:hover {
  border-color: rgba(94, 230, 230, 0.35);
}

/* Portrait / tall narrow viewports: stack hero like mobile (keep desktop nav) */
@media (orientation: portrait) and (min-width: 769px) {
  .beyond-words {
    display: none;
  }

  .beyond-hero {
    height: auto;
    min-height: max(720px, 100svh);
    overflow: visible;
  }

  .beyond-sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: max(720px, 100svh);
    padding-bottom: 2rem;
    grid-template-rows: auto;
  }

  .beyond-title-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    flex-shrink: 0;
    padding-top: clamp(5rem, 11vh, 6.5rem);
    padding-bottom: clamp(3rem, 7vh, 4rem);
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
    min-height: clamp(7rem, 22vw, 11rem);
  }

  .beyond-hero-main {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    padding: clamp(0.5rem, 1.5vh, 1rem) 1.5rem 2rem;
    align-items: center;
  }

  .beyond-layer-0 { transform: translateY(24px); }
  .beyond-layer-1 { transform: translateY(16px); }
  .beyond-layer-2 { transform: translateY(8px); }

  .hero-profile-img {
    width: min(56vw, 340px);
    height: min(56vw, 340px);
  }

  .beyond-layer {
    font-size: clamp(3.5rem, 16vw, 9rem);
  }
}

.mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 12, 0.98);
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(215, 226, 234, 0.1);
  }

  .site-nav-links.mobile-open {
    display: flex;
  }

  .site-nav-links a {
    padding: 0.65rem 0.5rem;
  }

  .site-nav-links .lang-switch-toggle {
    align-self: center;
    margin-top: 0.5rem;
  }

  .beyond-words {
    display: none;
  }

  .beyond-hero {
    height: auto;
    min-height: max(680px, 105svh);
    overflow: visible;
  }

  .beyond-sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: max(680px, 105svh);
    padding-bottom: 1.5rem;
  }

  .beyond-title-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    flex-shrink: 0;
    padding-top: clamp(4.25rem, 11vh, 5rem);
    padding-bottom: clamp(2.5rem, 6vh, 3.25rem);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    min-height: clamp(5.5rem, 24vw, 7.5rem);
  }

  .beyond-hero-main {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    padding: clamp(0.35rem, 1vh, 0.75rem) 1rem 2rem;
  }

  .hero-profile-img {
    width: min(68vw, 240px);
    height: min(68vw, 240px);
  }

  .hero-action-btn {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  .hero-action-bot-img {
    width: 20px;
    height: 20px;
  }

  .about-section {
    min-height: auto;
    align-items: flex-start;
    padding: clamp(5rem, 12vw, 6.5rem) 1rem clamp(3.5rem, 8vw, 5rem);
  }

  .about-deco-tl,
  .about-deco-tr {
    top: 1.25rem;
    width: clamp(52px, 16vw, 72px);
  }

  .about-deco-bl,
  .about-deco-br {
    bottom: 1.25rem;
    width: clamp(48px, 14vw, 64px);
  }

  .about-deco-tl {
    left: 0.5rem;
  }

  .about-deco-tr {
    right: 0.5rem;
  }

  .about-deco-bl {
    left: 0.75rem;
  }

  .about-deco-br {
    right: 0.75rem;
  }

  .about-inner {
    width: 100%;
    max-width: 100%;
    margin: clamp(3.5rem, 10vh, 5rem) auto 0;
    padding: 0 clamp(4.25rem, 14vw, 5.5rem);
    gap: 1.75rem;
  }

  .about-title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    line-height: 1.1;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-contact-btn {
    margin-top: 0.5rem;
  }

  .beyond-layer {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .project-entry,
  .project-entry:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .project-entry:nth-child(even) .project-visual,
  .project-entry:nth-child(even) .project-info {
    order: 0;
  }

  .project-collage {
    aspect-ratio: auto;
    display: grid;
    align-items: center;
    gap: 0.6rem;
    background: none;
  }

  .project-collage .collage-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  }

  .collage-tall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collage-tall .collage-hero {
    grid-column: 2;
    grid-row: 1;
    z-index: 3;
  }

  .collage-tall .collage-sat-a {
    grid-column: 1;
    grid-row: 1;
    transform: rotate(-4deg);
    z-index: 1;
  }

  .collage-tall .collage-sat-b {
    grid-column: 3;
    grid-row: 1;
    transform: rotate(4deg);
    z-index: 1;
  }

  .collage-tall .collage-sat-c,
  .collage-tall .collage-sat-d,
  .collage-tall .collage-sat-e {
    display: none;
  }

  .collage-wide,
  .collage-solo {
    aspect-ratio: auto;
    align-items: end;
  }

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

  .collage-wide .collage-hero {
    grid-column: 1 / -1;
  }

  .collage-wide .collage-sat-a {
    grid-column: 1;
    transform: rotate(-2deg);
  }

  .collage-wide .collage-sat-b {
    grid-column: 2;
    transform: rotate(2deg);
  }

  .collage-wide .collage-sat-c {
    display: none;
  }

  .collage-solo {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-nav-btn {
    display: block;
  }

  .page-services .process-timeline::before {
    left: 18px;
    transform: none;
  }

  .page-services .process-timeline-item {
    width: 100%;
    margin-left: 0;
    padding-left: 3.25rem;
    padding-right: 0;
  }

  .page-services .process-timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 3.25rem;
    padding-right: 0;
  }

  .page-services .process-timeline-item::after {
    left: 11px;
    right: auto;
  }

  .page-services .process-timeline-item .process-step {
    margin: 0;
    max-width: none;
    text-align: left;
  }

  .page-services .process-timeline-item:nth-child(odd) .process-num {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .brand-marquee-track { animation: none; }
  .beyond-word { transform: none !important; opacity: 1 !important; }
  .process-step:hover { transform: none; }
  .collage-card { transition: none; }
}
