:root {
  --color_bg: #0b1223;
  --color_bg_soft: #121b31;
  --color_panel: rgba(17, 28, 50, 0.74);
  --color_panel_light: rgba(116, 243, 245, 0.12);
  --color_text: #f2f6f8;
  --color_text_muted: rgba(242, 246, 248, 0.68);
  --color_text_faint: rgba(242, 246, 248, 0.42);
  --color_accent: #36B5C8;
  --color_accent_dark: #165f70;
  --color_line: rgba(123, 245, 245, 0.78);
  --font_heading: "Rajdhani", Arial, sans-serif;
  --font_body: "Rajdhani", Arial, sans-serif;
  --sidebar_width: 41vw;
  --divider_width: 1px;
  --content_width: 59vw;
  --desktop_pad_x: clamp(48px, 7vw, 140px);
  --section_max_width: 760px;
  --ease_default: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color_bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--color_text);
  font-family: var(--font_body);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0.035em;
  background:
    radial-gradient(circle at 12% 4%, rgba(122, 187, 255, 0.16), transparent 28vw),
    radial-gradient(circle at 88% 76%, rgba(123, 245, 245, 0.12), transparent 34vw),
    linear-gradient(135deg, #121b31 0%, #0b1223 38%, #0a1020 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 76%, rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 0 50%, rgba(153, 186, 255, 0.16), transparent 30vw);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

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

.site_shell {
  display: grid;
  grid-template-columns: var(--sidebar_width) var(--divider_width) var(--content_width);
  width: 100vw;
  height: 100vh;
}

.desktop_sidebar {
  position: relative;
  min-width: 0;
}

.sidebar_inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 7vh clamp(48px, 8vw, 160px) 7vh clamp(54px, 8.4vw, 170px);
}

.profile_block {
  margin-bottom: clamp(44px, 5.8vh, 74px);
}

.profile_name_heading {
  margin: 0;
  font: inherit;
}

.profile_name {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color_text);
  font-family: var(--font_heading);
  font-size: clamp(42px, 4.4vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
}

.profile_role {
  margin: 26px 0 28px;
  color: var(--color_accent);
  font-size: clamp(22px, 1.6vw, 32px);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.08em;
}

.profile_intro {
  max-width: 370px;
  margin: 0;
  color: var(--color_text_muted);
  font-size: clamp(17px, 1.15vw, 22px);
}

.desktop_nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vh, 36px);
}

.desktop_nav_button {
  position: relative;
  border: 0;
  padding: 0 0 0 28px;
  color: var(--color_text_faint);
  background: transparent;
  font-size: clamp(30px, 2.6vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: left;
  transition: color 0.28s var(--ease_default), transform 0.28s var(--ease_default);
}

.desktop_nav_button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  background: var(--color_accent);
  box-shadow: 0 0 14px rgba(123, 245, 245, 0.8);
  transform: translateY(-50%) scale(0.5);
  transition: opacity 0.28s var(--ease_default), transform 0.28s var(--ease_default);
}

.desktop_nav_button.is_active {
  color: var(--color_text);
  font-family: var(--font_heading);
  /* font-size: clamp(25px, 2.05vw, 38px); */
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.desktop_nav_button.is_active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.desktop_nav_button:hover,
.desktop_nav_button:focus-visible {
  color: var(--color_text);
  outline: none;
  transform: translateX(4px);
}

.desktop_divider {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100vh;
  padding: 12vh 0;
  pointer-events: none;
}

.divider_line {
  width: 1px;
  height: 76vh;
  margin-top: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color_line) 6%, var(--color_line) 94%, transparent 100%);
  box-shadow: 0 0 10px rgba(123, 245, 245, 0.16);
}

.divider_dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  max-width: none;
  height: 42px;
  transform: translate(-50%, -50%);
  transition: top 0.5s var(--ease_default);
}

.content_panel {
  position: relative;
  min-width: 0;
  height: 100vh;
}

.content_scroller {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 245, 245, 0.45) rgba(255, 255, 255, 0.04);
}

.content_scroller::-webkit-scrollbar {
  width: 9px;
}

.content_scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.content_scroller::-webkit-scrollbar-thumb {
  border: 2px solid rgba(11, 18, 35, 0.9);
  border-radius: 999px;
  background: rgba(123, 245, 245, 0.45);
}

.page_section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 9vh var(--desktop_pad_x) 9vh min(9vw, 118px);
}

#section_about,
#section_projects {
  padding-right: 0;
}

#section_projects .section_intro {
  padding-right: var(--desktop_pad_x);
}

.content_inner {
  width: min(100%, var(--section_max_width));
}

.narrow_inner {
  max-width: 780px;
}

.projects_inner {
  width: min(100%, 1020px);
  max-width: 1020px;
}

.section_hero_title,
.section_title,
.content_heading,
.project_card h3,
.info_card h3,
.experience_item h3 {
  font-family: var(--font_heading);
  letter-spacing: 0.055em;
}

.section_hero_title,
.section_title {
  margin: 0 0 34px;
  font-size: clamp(32px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.28;
}

.section_hero_title {
  max-width: 820px;
}

.section_intro p,
.home_copy p,
.project_group > p,
.how_i_work p,
.about_story_text,
.project_card p,
.info_card p,
.experience_item p {
  color: var(--color_text_muted);
}

.how_i_work p {
  padding-right: var(--desktop_pad_x);
}

.section_intro p,
.home_copy p {
  max-width: 860px;
  margin: 0 0 26px;
  font-size: clamp(18px, 1.2vw, 23px);
}

.button_group {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 52px;
}

.primary_button,
.outline_button,
.submit_button {
  min-width: 236px;
  border: 1px solid rgba(123, 245, 245, 0.64);
  border-radius: 999px;
  padding: 11px 30px 12px;
  font-family: var(--font_heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: lowercase;
  transition:
    transform 0.25s var(--ease_default),
    box-shadow 0.25s var(--ease_default),
    background 0.25s var(--ease_default),
    color 0.25s var(--ease_default),
    opacity 0.25s var(--ease_default);
}

.primary_button {
  color: rgba(11, 18, 35, 0.82);
  background: var(--color_accent);
  box-shadow: 0 0 24px rgba(123, 245, 245, 0.38);
}

.outline_button,
.submit_button {
  color: var(--color_accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 18px rgba(123, 245, 245, 0.28) inset, 0 0 20px rgba(123, 245, 245, 0.18);
}

.primary_button:hover,
.outline_button:hover,
.submit_button:hover:not(:disabled),
.primary_button:focus-visible,
.outline_button:focus-visible,
.submit_button:focus-visible:not(:disabled) {
  /* outline: none; */
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(123, 245, 245, 0.5);
}

.submit_button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.home_inner {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scroll_hint {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: clamp(64px, 11vh, 130px);
}

.scroll_hint_button {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(123, 245, 245, 0.28);
  border-radius: 50%;
  background: rgba(23, 86, 98, 0.58);
  box-shadow: 0 0 28px rgba(123, 245, 245, 0.18);
}

.scroll_hint_button img {
  width: 60px;
  height: 60px;
}

.scroll_hint p {
  margin: 0;
  color: var(--color_text_muted);
  font-size: 20px;
}

.mobile_brand {
  display: none;
}

.accordion_block {
  margin-top: 56px;
}

.accordion_header {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 0;
  padding: 0;
  color: var(--color_text);
  background: transparent;
  font-family: var(--font_heading);
  font-size: clamp(30px, 2.4vw, 46px);
  font-weight: 800;
  letter-spacing: 0.055em;
}

.accordion_icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.accordion_icon::before,
.accordion_icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: var(--color_text);
  transform-origin: center;
  transition: transform 0.25s var(--ease_default);
}

.accordion_icon::before {
  transform: translate(-74%, -50%) rotate(45deg);
}

.accordion_icon::after {
  transform: translate(-18%, -50%) rotate(-45deg);
}

.accordion_header[aria-expanded="true"] .accordion_icon::before {
  transform: translate(-74%, -50%) rotate(-45deg);
}

.accordion_header[aria-expanded="true"] .accordion_icon::after {
  transform: translate(-18%, -50%) rotate(45deg);
}

.accordion_content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.45s var(--ease_default);
}

.accordion_block.is_open .accordion_content {
  grid-template-rows: 1fr;
}

.accordion_content > * {
  min-height: 0;
}

.focus_grid {
  display: grid;
  gap: 26px;
  padding-top: 22px;
}

.info_card,
.project_card,
.story_box,
.about_story_box,
.mindset_box {
  border: 1px solid rgba(194, 218, 234, 0.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 28, 50, 0.68), rgba(22, 34, 60, 0.54));
  box-shadow: 0 24px 48px rgba(3, 8, 20, 0.35), inset 0 0 28px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.info_card.is_active {
  background-color: rgba(125,250,255, 0.4);
  border: 1px solid rgba(125,250,255, 0.4);
}

/* :hover csak valódi egérrel/hover-képes eszközön aktiválódjon — mobilon a
   koppintás ne "ragadjon be" hover-állapotba; a görgetéses is_active kiemelés
   (fent) mindenhol megmarad. */
@media (hover: hover) and (pointer: fine) {
  .info_card:hover,
  .project_card:hover,
  .story_box:hover,
  .about_story_box:hover,
  .mindset_box:hover {
    background-color: rgba(125,250,255, 0.4);
    border: 1px solid rgba(125,250,255, 0.4);
  }
}

.info_card {
  padding: 16px 18px;
}

.info_card h3,
.project_card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.info_card p {
  margin: 0;
  font-size: 17px;
}

.stagger_item {
  opacity: 0;
  transform: translateY(16px);
}

.work_background {
  margin-top: 68px;
}

.content_heading {
  margin: 0 0 34px;
  font-size: clamp(30px, 2.4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}

.experience_item {
  margin-bottom: 34px;
}

.experience_item h3 {
  margin: 0 0 2px;
  color: var(--color_text_muted);
  font-size: 23px;
}

.experience_item p {
  margin: 0 0 12px;
  font-size: 18px;
}

.muted_line {
  color: var(--color_text_faint) !important;
  font-size: 20px !important;
}

.technology_group {
  margin-top: 26px;
}

.technology_group h3 {
  margin: 0 0 14px;
  color: var(--color_accent);
  font-family: var(--font_heading);
  font-size: 18px;
  font-weight: 700;
}

.tag_row,
.mini_tag_row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag_row span,
.mini_tag_row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  color: var(--color_accent);
  background: rgba(20, 113, 130, 0.72);
  font-family: var(--font_heading);
  font-weight: 700;
  line-height: 1;
}

.tag_row span {
  padding: 8px 17px;
  font-size: 14px;
}

.mini_tag_row span {
  min-height: 20px;
  padding: 5px 10px;
  font-size: 11px;
}

.story_box {
  position: relative;
  width: min(100%, 640px);
  margin-top: 78px;
  padding: 42px 42px 34px;
  background: linear-gradient(135deg, rgba(24, 83, 97, 0.66), rgba(34, 54, 82, 0.66));
  box-shadow: 0 0 24px rgba(123, 245, 245, 0.22), inset 0 0 28px rgba(123, 245, 245, 0.05);
}

.story_label {
  position: absolute;
  top: -27px;
  left: 38px;
  min-width: 210px;
  border-radius: 999px;
  padding: 5px 26px 8px;
  color: var(--color_text);
  background: linear-gradient(135deg, rgba(123, 245, 245, 0.7), rgba(39, 111, 125, 0.88));
  font-family: var(--font_heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.story_row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.story_viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  overflow: hidden;
}

.story_text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  opacity: 0;
  color: var(--color_text);
  font-family: var(--font_heading);
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story_text.is_current {
  opacity: 1;
}

.story_nav {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.story_nav_button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(123, 245, 245, 0.34);
  border-radius: 50%;
  color: var(--color_accent);
  background: rgba(123, 245, 245, 0.09);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease_default), box-shadow 0.25s var(--ease_default), opacity 0.25s var(--ease_default);
}

.story_nav_button:hover,
.story_nav_button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(123, 245, 245, 0.24);
}

.story_nav_button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.story_nav_button[data_story_direction="-1"] .story_nav_icon {
  transform: rotate(180deg);
}

.project_group {
  margin-top: 58px;
}

.section_heading_row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section_heading_row p {
  max-width: 670px;
  margin: 0;
  color: var(--color_text_muted);
}

.carousel_controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: 12px;
}

.carousel_button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(123, 245, 245, 0.34);
  border-radius: 50%;
  color: var(--color_accent);
  background: rgba(123, 245, 245, 0.09);
  font-size: 30px;
  line-height: normal;
  transition: transform 0.25s var(--ease_default), box-shadow 0.25s var(--ease_default);
}

.carousel_button:hover,
.carousel_button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(123, 245, 245, 0.24);
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel_track {
  display: flex;
  gap: 28px;
  transition: transform 0.55s var(--ease_default);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel_track.is_dragging {
  transition: none;
  cursor: grabbing;
}

.swipe_hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--color_accent);
  font-family: var(--font_heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.swipe_hint_icon {
  flex: 0 0 auto;
  width: 28px;
  height: auto;
  opacity: 0.85;
}

.carousel_track img {
  -webkit-user-drag: none;
  user-drag: none;
}

.project_card {
  position: relative;
  flex: 0 0 min(490px, 92%);
  min-height: 354px;
  padding: 18px 20px 60px;
}

.project_card_header {
  display: grid;
  grid-template-columns: 1fr 138px;
  gap: 18px;
  align-items: start;
}

.project_card_header img {
  width: 138px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
}

.project_card p {
  margin: 12px 0 0;
  font-size: 18px;
}

.project_card > p:first-of-type,
.project_card_header p,
.project_meta {
  font-size: 13px !important;
  font-weight: 700;
}

.project_subtitle {
  margin-top: -7px !important;
  color: var(--color_accent) !important;
}

.project_link {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--color_text_muted);
  text-decoration: none;
}

.project_link_icon {
  width: 48px;
  height: 48px;
}

.project_link:hover,
.project_link:focus-visible {
  color: var(--color_accent);
  outline: none;
}

.project_modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 5vh 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease_default);
}

.project_modal.is_open {
  opacity: 1;
  pointer-events: auto;
}

.project_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project_modal_dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 0;
  width: min(100%, 960px);
  max-height: 90vh;
  border: 1px solid rgba(194, 218, 234, 0.25);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 28, 50, 0.94), rgba(22, 34, 60, 0.94));
  box-shadow: 0 30px 60px rgba(3, 8, 20, 0.5);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s var(--ease_default);
}

.project_modal.is_open .project_modal_dialog {
  transform: translateY(0) scale(1);
}

.project_modal_close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(123, 245, 245, 0.34);
  border-radius: 50%;
  background: rgba(11, 18, 35, 0.55);
  color: var(--color_text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease_default), box-shadow 0.25s var(--ease_default);
}

.project_modal_close:hover,
.project_modal_close:focus-visible {
  outline: none;
  color: var(--color_accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(123, 245, 245, 0.24);
}

.project_modal_scroll {
  display: contents;
}

.project_modal_gallery {
  position: relative;
  background: rgba(5, 10, 22, 0.6);
}

.project_modal_carousel {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.project_modal_track {
  display: flex;
  height: 100%;
  transition: transform 0.42s var(--ease_default);
}

.project_modal_track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project_modal_prev,
.project_modal_next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  font-size: 24px;
  color: #fff;
  background: rgba(5, 10, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(3, 8, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project_modal_prev {
  left: 14px;
}

.project_modal_next {
  right: 14px;
}

.project_modal_prev:hover,
.project_modal_next:hover,
.project_modal_prev:focus-visible,
.project_modal_next:focus-visible {
  transform: translateY(-50%);
  background: rgba(5, 10, 22, 0.88);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(3, 8, 20, 0.6);
}

.project_modal_dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 22, 0.55);
  box-shadow: 0 4px 14px rgba(3, 8, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

.story_dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(3, 8, 20, 0.5);
  transition: width 0.25s var(--ease_default), background 0.25s var(--ease_default), box-shadow 0.25s var(--ease_default);
}

.story_dot:hover,
.story_dot:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.7);
}

.story_dot.is_current {
  width: 22px;
  border-radius: 4px;
  background: var(--color_accent);
  box-shadow: 0 0 10px rgba(123, 245, 245, 0.65);
}

.project_modal_body {
  padding: 44px 40px;
  overflow-y: auto;
}

.project_modal_body h3 {
  margin: 0 0 6px;
  font-family: var(--font_heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.project_modal_body .project_subtitle {
  margin: 0 0 20px;
}

.project_modal_body .mini_tag_row {
  margin-bottom: 22px;
}

.project_modal_description p {
  margin: 0 0 16px;
  color: var(--color_text_muted);
}

.project_modal_description p:last-child {
  margin-bottom: 0;
}

.about_inner {
  width: min(100%, 920px);
  max-width: 920px;
}

/* .about_fade {
  height: 130px;
  pointer-events: none;
}

.about_fade_top {
  background: linear-gradient(to bottom, #10172a, transparent);
  transform: rotate(180deg);
}

.about_fade_bottom {
  background: linear-gradient(to top, #10172a, transparent);
} */

.about_header {
  position: relative;
  display: block;
  min-height: clamp(680px, 52vw, 840px);
}

.about_header > div {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.about_header .section_title {
  font-size: clamp(30px, 3vw, 46px);
}

.portrait_image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.94;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%), radial-gradient(120% 100% at 70% 40%, #000 55%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 22%), radial-gradient(120% 100% at 70% 40%, #000 55%, transparent 96%);
  mask-composite: intersect;
}

.about_story_box {
  position: relative;
  z-index: 1;
  min-height: 120px;
  margin: clamp(-170px, -13vw, -70px) var(--desktop_pad_x) 58px 40px;
  padding: 22px 26px;
  overflow: hidden;
  transition: height 0.4s var(--ease_default);
}

.about_story_text {
  position: absolute;
  inset: 22px 82px 22px 26px;
  margin: 0;
  opacity: 0;
}

.about_story_box .story_nav {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.about_story_text.is_current {
  opacity: 1;
}

.how_i_work {
  opacity: 0;
  transform: translateY(28px);
}

.how_i_work p {
  max-width: 680px;
  margin: 0 0 24px;
}

.mindset_box {
  position: relative;
  width: min(calc(100% - var(--desktop_pad_x)), 640px);
  margin-top: 58px;
  padding: 48px 44px 28px;
  background: linear-gradient(135deg, rgba(24, 83, 97, 0.66), rgba(34, 54, 82, 0.66));
  box-shadow: 0 0 24px rgba(123, 245, 245, 0.22), inset 0 0 28px rgba(123, 245, 245, 0.05);
}

.mindset_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px 32px;
}

.mindset_tag {
  opacity: 0;
  color: var(--color_text_muted);
  font-family: var(--font_heading);
  font-size: 18px;
  font-weight: 800;
  transform: translateY(16px);
}

.contact_inner {
  width: min(100%, 850px);
  max-width: 850px;
}

.cv_action_row {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 40px 0 84px;
}

.cv_label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 122px;
  height: 93px;
  /* padding-right: 46px; */
  border-radius: 20px 0px 0px 20px;
  background: var(--color_accent);
  color: #0b1223;
  font-family: var(--font_heading);
  font-size: 40px;
  font-weight: 800;
}

.cv_glass_box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 223px;
  /* margin-left: -46px; */
  height: 136px;
  border-radius: 20px;
  background: rgba(13, 20, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.08), 0 22px 44px rgba(3, 8, 20, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.cv_action {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  gap: 6px;
  padding: 14px 10px;
  color: var(--color_text_muted);
  text-align: center;
  text-decoration: none;
  transition: color 0.25s var(--ease_default), background 0.25s var(--ease_default);
}

.cv_action + .cv_action {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.cv_icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.cv_icon img {
  width: 100%;
  height: 100%;
}

.cv_action span:last-child {
  font-size: 12px;
}

.cv_action:hover,
.cv_action:focus-visible {
  color: var(--color_accent);
  background: rgba(123, 245, 245, 0.07);
  outline: none;
}

.contact_tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 48px;
}

.contact_tab {
  border: 0;
  padding: 0;
  color: var(--color_text_faint);
  background: transparent;
  font-family: var(--font_body);
  font-size: 28px;
  letter-spacing: 0.07em;
}

.contact_tabs span {
  color: var(--color_text);
  font-family: var(--font_heading);
  font-size: 26px;
  font-weight: 800;
}

.contact_tab.is_active {
  color: var(--color_accent);
  font-family: var(--font_heading);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-transform: uppercase;
}

.contact_views {
  position: relative;
  min-height: 280px;
}

.contact_view {
  display: none;
}

.contact_view.is_active {
  display: block;
}

.contact_list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact_list li {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color_text_muted);
  font-family: var(--font_heading);
  font-size: 27px;
  font-weight: 800;
}

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

.contact_list a:hover,
.contact_list a:focus-visible {
  color: var(--color_accent);
  outline: none;
}

.contact_icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  color: var(--color_text_muted);
  font-size: 24px;
}

.contact_form {
  display: grid;
  gap: 24px;
}

.form_field {
  display: grid;
  gap: 9px;
}

.form_field label {
  color: var(--color_text_faint);
  font-size: 20px;
}

.form_field input,
.form_field textarea {
  width: 100%;
  border: 1px solid rgba(242, 246, 248, 0.34);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--color_text);
  background: rgba(242, 246, 248, 0.2);
  outline: none;
  transition: border-color 0.25s var(--ease_default), box-shadow 0.25s var(--ease_default);
}

.form_field textarea {
  resize: vertical;
  min-height: 170px;
}

.form_field input:focus,
.form_field textarea:focus {
  border-color: var(--color_accent);
  box-shadow: 0 0 0 3px rgba(123, 245, 245, 0.12);
}

.hidden_field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form_bottom_row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 26px;
  align-items: center;
}

.checkbox_label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color_text_faint);
  user-select: none;
}

.checkbox_label input {
  width: 22px;
  height: 22px;
  accent-color: var(--color_accent);
}

.form_status {
  min-height: 28px;
  margin: 0;
  color: var(--color_accent);
  font-size: 18px;
}

.form_status.is_error {
  color: #ff9eae;
}

.mobile_navigation {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    --sidebar_width: 40vw;
    --content_width: 60vw;
    --desktop_pad_x: clamp(34px, 5vw, 84px);
  }

  .sidebar_inner {
    padding-left: clamp(38px, 6vw, 90px);
    padding-right: clamp(34px, 5vw, 84px);
  }

  .project_card {
    flex-basis: min(430px, 92%);
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .about_header {
    min-height: clamp(620px, 70vw, 780px);
  }

  .about_header > div {
    max-width: 460px;
  }

  .about_header .section_title {
    font-size: clamp(28px, 3.6vw, 40px);
  }

  .about_story_box {
    margin: clamp(-140px, -14vw, -60px) var(--desktop_pad_x) 44px 0;
  }
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
    font-size: 17px;
  }

  .site_shell {
    display: block;
    height: 100svh;
  }

  .desktop_sidebar,
  .desktop_divider {
    display: none;
  }

  .content_panel,
  .content_scroller {
    height: 100svh;
  }

  .content_scroller {
    overflow-y: auto;
    padding-bottom: 0;
  }

  .page_section {
    display: none;
    min-height: auto;
    padding: 32px 20px 154px;
  }

  .page_section.is_mobile_active {
    display: block;
  }

  .content_inner,
  .projects_inner,
  .about_inner,
  .contact_inner,
  .narrow_inner {
    width: 100%;
    max-width: none;
  }

  .mobile_brand {
    display: block;
    margin-bottom: 58px;
  }

  .mobile_brand_name {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    font-family: var(--font_heading);
    font-size: 70px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.1em;
  }

  .mobile_brand p {
    margin: 10px 0 0;
    color: var(--color_accent);
    font-size: 30px;
    text-align: right;
  }

  .home_inner {
    /* min-height: calc(100svh - 186px); */
    justify-content: flex-start;
  }

  .section_hero_title,
  .section_title {
    margin-bottom: 22px;
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.26;
  }

  .section_intro p,
  .home_copy p {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .button_group {
    gap: 14px;
    margin-top: 28px;
  }

  .primary_button,
  .outline_button,
  .submit_button {
    min-width: 0;
    flex: 1 1 150px;
    padding: 9px 18px 10px;
    font-size: 16px;
  }

  .scroll_hint {
    justify-content: center;
    gap: 16px;
    margin-top: 72px;
  }

  .scroll_hint_button {
    width: 58px;
    height: 58px;
  }

  .scroll_hint_button img {
    width: 26px;
    height: 26px;
  }

  .scroll_hint p {
    max-width: 210px;
    font-size: 14px;
  }

  .accordion_block,
  .project_group {
    margin-top: 42px;
  }

  .accordion_header,
  .content_heading {
    font-size: 28px;
  }

  .focus_grid {
    gap: 20px;
  }

  .info_card {
    padding: 14px 15px;
  }

  .info_card h3,
  .project_card h3 {
    font-size: 18px;
  }

  .info_card p,
  .project_card p,
  .experience_item p {
    font-size: 15px;
  }

  .work_background {
    margin-top: 46px;
  }

  .story_box {
    width: 100%;
    margin-top: 66px;
    padding: 36px 22px 25px;
  }

  .story_label {
    left: 20px;
    min-width: 160px;
    font-size: 21px;
  }

  .story_text {
    font-size: 13px;
  }

  .section_heading_row {
    display: block;
  }

  .carousel_controls {
    margin-top: 18px;
  }

  #section_projects .carousel {
    padding-right: var(--desktop_pad_x);
  }

  .project_card {
    flex-basis: 100%;
    min-height: 0;
    padding: 16px 16px 66px;
  }

  .project_card_header {
    grid-template-columns: 1fr 92px;
    gap: 12px;
  }

  .project_card_header img {
    width: 92px;
    height: 70px;
  }

  .project_link {
    right: 18px;
    bottom: 16px;
  }

  .project_modal {
    padding: 0;
  }

  .project_modal_dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .project_modal_scroll {
    display: block;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .project_modal_gallery {
    position: sticky;
    top: 0;
  }

  .project_modal_carousel {
    min-height: 0;
    height: 50vh;
  }

  .project_modal[data_project="millionaire"] .project_modal_carousel {
    height: calc(50vh - 125px);
  }

  .project_modal_track img {
    object-fit: contain;
    background: rgba(5, 10, 22, 0.6);
  }

  .project_modal_body {
    position: relative;
    margin-top: -22px;
    padding: 30px 22px 40px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, rgba(17, 28, 50, 0.98), rgba(22, 34, 60, 0.98));
    overflow-y: visible;
  }

  #section_about {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .about_header {
    min-height: clamp(420px, 66vw, 560px);

  }

  .about_header > div {
    max-width: none;
    padding: 32px 20px 0;
  }

   .portrait_image {
    /* transform: scale(1.4);
    transform-origin: 80% -30%; */
    height: auto;
  }

  .about_story_box {
    margin: 24px 20px 44px;
  }

  .how_i_work {
    padding: 0 20px;
  }

  .mindset_box {
    width: 100%;
    padding: 42px 24px 24px;
  }

  .mindset_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
  }

  .mindset_tag {
    font-size: 15px;
  }

  .cv_action_row {
    margin: 28px 0 42px;
  }

  .contact_tabs {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 34px;
  }

  .contact_tab {
    font-size: 20px;
  }

  .contact_tabs span {
    font-size: 20px;
  }

  .contact_list li {
    gap: 16px;
    font-size: 18px;
    word-break: break-word;
  }

  .form_bottom_row {
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
  }

  .mobile_navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: block;
    padding: 0 18px 16px;
    pointer-events: none;
  }

  .mobile_nav_base {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 108px 1fr;
    align-items: end;
    gap: 14px;
    margin: 0 -18px -16px;
    padding: 10px 18px 16px;
    background: linear-gradient(to bottom, transparent, var(--color_bg) 28px);
    pointer-events: auto;
  }

  .mobile_nav_base::before,
  .mobile_nav_base::after {
    position: absolute;
    top: 10px;
    width: calc(50% - 72px);
    height: 1px;
    content: "";
    background: var(--color_line);
  }

  .mobile_nav_base::before {
    left: 0;
  }

  .mobile_nav_base::after {
    right: 0;
  }

  .mobile_nav_button,
  .mobile_extra_item,
  .mobile_menu_toggle {
    border: 0;
    color: var(--color_text_muted);
    background: transparent;
    text-align: center;
  }

  .mobile_nav_button {
    display: grid;
    gap: 5px;
    justify-items: center;
    padding: 0;
  }

  .mobile_icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    line-height: 1;
  }

  .mobile_nav_button span:last-child {
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .mobile_nav_button.is_active,
  .mobile_extra_item.is_active {
    color: var(--color_accent);
    font-family: var(--font_heading);
    font-weight: 800;
  }

  .mobile_menu_toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto;
  }

  .mobile_toggle_dots {
    position: absolute;

    width: 88px;
    height: 88px;
    transition: opacity 0.25s var(--ease_default), transform 0.25s var(--ease_default);
  }

  .mobile_toggle_close {
    position: absolute;
    width: 44px;
    height: 44px;
    opacity: 0;
    transform: rotate(-35deg) scale(0.6);
    transition: opacity 0.25s var(--ease_default), transform 0.25s var(--ease_default);
  }

  .mobile_navigation.is_open .mobile_toggle_dots {
    opacity: 0;
    transform: scale(0.5);
  }

  .mobile_navigation.is_open .mobile_toggle_close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .mobile_extra_menu {
    display: grid;
    grid-template-columns: repeat(3, 52px);
    justify-content: center;
    align-items: end;
    gap: 22px;
    margin-bottom: 6px;
    pointer-events: none;
  }

  .mobile_navigation.is_open .mobile_extra_menu {
    pointer-events: auto;
  }

  .mobile_extra_item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transform: translateX(-22px) translateY(18px) scale(0.92);
  }

  .mobile_extra_item .mobile_icon {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(123, 245, 245, 0.18);
    border-radius: 50%;
    background: rgba(19, 101, 115, 0.88);
    box-shadow: 0 0 18px rgba(123, 245, 245, 0.12);
  }

  .mobile_extra_item_raised .mobile_icon {
    transform: translateY(-34px);
  }

  .mobile_extra_item .mobile_icon img {
    width: 24px;
    height: 24px;
  }

  .mobile_icon_label {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 420px) {
  .portrait_image {
    transform: scale(1.4);
    transform-origin: 80% -30%;
  }
  .cv_action_row {
    width: 100%;
  }

  .cv_label {
    width: 35%;
  }

  .cv_glass_box {
    width: 65%;
  }

  .form_bottom_row {
    grid-template-columns: 1fr;
  }

  .mobile_nav_base {
    grid-template-columns: 1fr 84px 1fr;
  }

  .mobile_menu_toggle {
    width: 80px;
    height: 80px;
  }

  .mobile_toggle_dots {
    width: 80px;
    height: 80px;
  }

  .mobile_extra_menu {
    grid-template-columns: repeat(3, 48px);
    gap: 16px;
  }

  .mobile_extra_item .mobile_icon {
    width: 52px;
    height: 52px;
  }

  .mobile_extra_item_raised .mobile_icon {
    transform: translateY(-30px);
  }
}
