/*
  Kinetic Inspection Field
  Dark, technical and cinematic. Content remains owned by index.html.
*/

:root {
  color-scheme: dark;
  --c-dark: #07090d;
  --c-dark2: #0b0f15;
  --c-dark3: #111720;
  --c-blue: #ef3340;
  --c-blue2: #bf1f2b;
  --c-sky: #ff5964;
  --c-gold: #ef3340;
  --c-gold2: #ff5964;
  --c-white: #f4f4f1;
  --c-muted: #9199a5;
  --c-border: rgba(255, 255, 255, 0.11);
  --c-line: rgba(255, 255, 255, 0.07);
  --glass-bg: rgba(12, 16, 23, 0.58);
  --glass-border: rgba(255, 255, 255, 0.12);
  --nav-h: 74px;
  --radius: 3px;
  --shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
  --page: min(1440px, calc(100vw - 72px));
  --signal: #ef3340;
  --ease-studio: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: var(--c-dark);
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #07090d;
  background-size: 72px 72px;
  color: var(--c-white);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(239, 51, 64, 0.22);
}

main [id] {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(255, 255, 255, 0.045) 50%, transparent 50.05%),
    radial-gradient(ellipse 80% 58% at 82% 18%, rgba(239, 51, 64, 0.12), transparent 64%),
    radial-gradient(ellipse 50% 40% at 12% 82%, rgba(118, 133, 151, 0.08), transparent 70%);
}

::selection {
  color: #fff;
  background: rgba(239, 51, 64, 0.72);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  background: #fff;
  color: #080a0e;
  padding: 0.7rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

#kgrid,
#three-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#kgrid {
  z-index: 0;
  opacity: 0.78;
  filter: saturate(0.9) contrast(1.12) brightness(0.8);
}

#three-field {
  z-index: 0;
  opacity: 0.68;
  mix-blend-mode: screen;
  filter: saturate(0.88) contrast(1.06);
}

#kgrid-vignette {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.36) 38%, rgba(7, 9, 13, 0.12) 76%),
    radial-gradient(110% 80% at 50% 15%, transparent 28%, rgba(7, 9, 13, 0.58) 100%);
}

.original-motion-fallback #kgrid {
  background:
    radial-gradient(circle at 78% 25%, rgba(239, 51, 64, 0.18), transparent 25rem),
    radial-gradient(circle at 88% 58%, rgba(107, 125, 147, 0.12), transparent 34rem),
    #07090d;
}

.original-motion-fallback #kgrid-vignette {
  background:
    radial-gradient(circle at 78% 25%, rgba(239, 51, 64, 0.18), transparent 25rem),
    radial-gradient(circle at 88% 58%, rgba(107, 125, 147, 0.12), transparent 34rem),
    linear-gradient(90deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.55));
}

.no-three #three-field {
  display: none;
}

/* Navigation */
nav {
  position: sticky;
  height: var(--nav-h);
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  gap: 24px;
  background: rgba(7, 9, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.modal-box,
#ue-box,
#lightbox,
#ref-auth-modal,
#photo-auth-modal,
#edit-auth-modal {
  overscroll-behavior: contain;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--nav-progress, 0%);
  height: 1px;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(239, 51, 64, 0.8);
}

nav.shadow {
  background: rgba(7, 9, 13, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.hamburger span {
  transition: transform 220ms var(--ease-studio), opacity 180ms ease, background-color 180ms ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-brand {
  min-width: 230px;
  gap: 0.72rem;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.nav-name {
  font-size: 0.94rem;
  letter-spacing: 0.035em;
}

.nav-cv {
  color: var(--signal);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 0.75rem;
  font-family: var(--ff-mono);
  border: 1px solid rgba(239, 51, 64, 0.5);
  padding: 0.18rem 0.3rem;
}

.nav-subtitle {
  color: var(--c-muted);
  font-size: 0.57rem;
  letter-spacing: 0.24em;
}

.nav-menu {
  margin-left: auto;
  gap: 0;
}

.nav-menu > li > a,
.nav-menu > li > button {
  position: relative;
  padding: 0.6rem 0.66rem;
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu > li > a::after,
.nav-menu > li > button::after {
  content: "";
  position: absolute;
  right: 0.66rem;
  bottom: 0.35rem;
  left: 0.66rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--signal);
  transition: transform 260ms var(--ease-studio);
}

.nav-menu > li > a:hover,
.nav-menu > li > button:hover,
.nav-menu > li > a.active {
  color: #fff;
  background: transparent;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > button:hover::after,
.nav-menu > li > a.active::after {
  transform: scaleX(1);
}

.drop-menu {
  top: calc(100% + 15px);
  padding: 0.5rem;
  border-radius: 2px;
  background: rgba(11, 15, 21, 0.98);
  border: 1px solid var(--c-border);
}

.drop-menu a {
  border-bottom: 1px solid var(--c-line);
  padding: 0.72rem 0.85rem;
}

.nav-btn-contact {
  color: #fff !important;
}

.nav-cv-download {
  min-width: 138px;
  justify-content: center;
  margin-left: 0;
  border: 1px solid var(--signal);
  border-radius: 2px;
  padding: 0.68rem 0.86rem;
  background: var(--signal);
  box-shadow: 0 0 0 rgba(239, 51, 64, 0);
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: color 260ms ease, background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.nav-cv-download:hover {
  color: var(--signal);
  background: transparent;
  box-shadow: 0 0 30px rgba(239, 51, 64, 0.22);
}

/* Hero */
.hero {
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  overflow: clip;
  background: transparent;
}

.hero::before {
  content: "INSPECTION / EXPEDITING / QA";
  position: absolute;
  z-index: 0;
  right: -0.2em;
  bottom: -0.24em;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10.8vw, 11rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  white-space: nowrap;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: clamp(48px, 8vh, 96px);
  right: max(26px, calc((100vw - 1440px) / 2));
  width: min(54vw, 790px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(255, 255, 255, 0.008),
    0 0 0 14vw rgba(255, 255, 255, 0.006);
  pointer-events: none;
}

.hero-inner {
  width: var(--page);
  max-width: none;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(40px, 7vh, 86px) 0 clamp(34px, 5vh, 68px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.55fr);
  gap: clamp(54px, 7vw, 118px);
}

.hero-photo-col {
  position: relative;
  align-items: stretch;
  gap: 0;
  perspective: 1200px;
}

.hero-photo-col::before {
  content: "FIELD PROFILE / 01";
  position: absolute;
  z-index: 4;
  top: 12px;
  left: -28px;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.photo-frame {
  width: min(100%, 350px);
  max-width: none;
  align-self: flex-end;
  aspect-ratio: 0.64;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.photo-frame::before {
  z-index: 3;
  inset: -16px 16px 16px -16px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateZ(28px);
}

.photo-frame::after {
  z-index: -1;
  inset: 28px -28px -28px 28px;
  border: 1px solid rgba(239, 51, 64, 0.7);
  background: rgba(239, 51, 64, 0.035);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.64), 0 0 54px rgba(239, 51, 64, 0.08);
  transform: translateZ(-24px);
}

.photo-frame img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-position: 50% 15%;
  filter: saturate(0.72) contrast(1.08);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 88% 100%, 0 100%);
}

.photo-frame img {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.photo-edit-overlay {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 88% 100%, 0 100%);
}

.availability-badge {
  position: relative;
  z-index: 5;
  width: max-content;
  margin: -18px 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  padding: 0.74rem 1rem;
  background: rgba(8, 11, 16, 0.92);
  box-shadow: 12px 12px 0 rgba(239, 51, 64, 0.13);
  font-family: var(--ff-mono);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.hero-social {
  justify-content: flex-end;
  margin-top: 34px;
  gap: 7px;
}

.hsl-btn {
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 0.54rem 0.74rem;
  color: var(--c-muted);
  background: rgba(9, 12, 17, 0.62);
  box-shadow: none;
  font-family: var(--ff-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hsl-wa,
.hsl-ig,
.hsl-li {
  color: var(--c-muted);
  background: rgba(9, 12, 17, 0.62);
}

.hsl-btn:hover {
  border-color: rgba(239, 51, 64, 0.75);
  color: #fff;
  background: rgba(239, 51, 64, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-inner > .rv {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 760px;
}

.hero-inner > .rv::before {
  content: "20+ YEARS / GLOBAL FIELD EXPERIENCE";
  display: block;
  margin-bottom: clamp(24px, 4vh, 48px);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.hero-tag {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 0 0 0 1.3rem;
  border: 0;
  border-radius: 0;
  color: var(--signal);
  background: transparent;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
}

.hero-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--signal);
  box-shadow: 0 0 24px rgba(239, 51, 64, 0.85);
}

.hero-name {
  max-width: 820px;
  margin: 0 0 0.65rem;
  color: var(--c-white);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(4.3rem, 7.7vw, 8.6rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero-title {
  position: relative;
  max-width: 620px;
  margin: 1.85rem 0 0.6rem;
  padding-left: 72px;
  color: #fff;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-title::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 50px;
  height: 1px;
  background: var(--signal);
}

.hero-location {
  margin: 0 0 1.9rem 72px;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.hero-contacts {
  max-width: 700px;
  margin-bottom: 2rem;
  gap: 7px;
}

.contact-chip {
  border-radius: 0;
  padding: 0.52rem 0.68rem;
  background: rgba(9, 12, 17, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--ff-mono);
  font-size: 0.64rem;
}

.contact-chip a {
  color: #d9dde2;
}

.contact-chip:hover {
  background: rgba(239, 51, 64, 0.1);
  border-color: rgba(239, 51, 64, 0.62);
}

.hero-stats {
  position: relative;
  max-width: 720px;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-card {
  position: relative;
  min-height: 92px;
  padding: 1rem 1.1rem 0.86rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(8, 11, 16, 0.38);
  text-align: left;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 420ms var(--ease-studio);
}

.stat-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(239, 51, 64, 0.055);
}

.stat-card:hover::before {
  width: 100%;
}

.stat-num {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  margin-top: 0.45rem;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

.hero-cta {
  margin-top: 1.55rem;
  gap: 8px;
}

.btn {
  position: relative;
  min-height: 48px;
  overflow: hidden;
  justify-content: center;
  border-radius: 1px;
  padding: 0.82rem 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: rgba(255, 255, 255, 0.14);
  transition: transform 420ms var(--ease-studio);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 14px 44px rgba(239, 51, 64, 0.2);
}

.btn-primary:hover {
  background: #ff414d;
  border-color: #ff414d;
  transform: translateY(-2px);
}

.btn-outline {
  color: #dfe3e8;
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(8, 11, 16, 0.58);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--signal);
  background: rgba(239, 51, 64, 0.08);
}

/* Client rail */
.clients-strip {
  padding: 1.2rem 0;
  background: rgba(7, 9, 13, 0.7);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.clients-label {
  width: var(--page);
  max-width: none;
  margin-bottom: 0.9rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.57rem;
}

.clients-row {
  gap: clamp(2.8rem, 5vw, 6rem);
}

.client-tag {
  position: relative;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-tag::before {
  content: "+";
  margin-right: 0.65rem;
  color: var(--signal);
}

/* Section system */
.section,
.exp-inner {
  width: var(--page);
  max-width: none;
  margin-inline: auto;
  padding: clamp(94px, 11vw, 168px) 0;
}

section,
.section-alt,
#experience-section {
  position: relative;
}

#about,
#employment,
#certifications,
#highlights,
#experience-section {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 9, 13, 0.58);
}

.section-alt {
  background: rgba(9, 12, 17, 0.52);
}

.section-alt::before,
#employment::before,
#highlights::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 9.8%, rgba(255, 255, 255, 0.026) 10%, transparent 10.2%),
    linear-gradient(90deg, transparent 0 89.8%, rgba(255, 255, 255, 0.026) 90%, transparent 90.2%);
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 0 48px;
  margin-bottom: clamp(44px, 6vw, 82px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.section-head::after {
  content: attr(data-index);
  position: absolute;
  right: 0;
  top: -1.8rem;
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.sec-kicker {
  grid-column: 1;
  grid-row: 1 / span 3;
  color: var(--signal);
  font-family: var(--ff-mono);
  font-size: 0.59rem;
  line-height: 1.5;
  letter-spacing: 0.17em;
}

.sec-kicker::before {
  content: "●";
  margin-right: 0.55rem;
  font-size: 0.52rem;
}

.sec-title {
  grid-column: 2;
  margin: 0;
  color: #f4f4f1;
  font-size: clamp(2.65rem, 5vw, 5.9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.sec-title em {
  color: #f4f4f1;
  font-style: normal;
}

.sec-bar {
  grid-column: 2;
  width: clamp(48px, 8vw, 100px);
  height: 2px;
  margin: 1.4rem 0 0;
  background: var(--signal);
}

.sec-desc {
  grid-column: 2;
  max-width: 760px;
  margin-top: 1.7rem;
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Profile */
.about-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  gap: clamp(48px, 9vw, 140px);
}

.about-text {
  max-width: 730px;
}

.about-text p {
  color: #b1b7c0;
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.85;
}

.about-text p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.14em 0 0;
  color: var(--signal);
  font-family: var(--ff-display);
  font-size: 4.2em;
  font-weight: 600;
  line-height: 0.74;
}

.info-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.info-row {
  display: grid;
  grid-template-columns: 26px minmax(90px, 0.35fr) 1fr;
  gap: 10px;
  padding: 0.88rem 0;
  border-bottom: 1px solid var(--c-line);
}

.info-icon {
  filter: grayscale(1);
  opacity: 0.55;
}

.info-key {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-val {
  font-size: 0.84rem;
}

.skill-tags {
  gap: 5px;
}

.stag {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  padding: 0.45rem 0.58rem;
  color: #aeb5be;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.card-stack {
  border-top: 1px solid var(--c-border);
}

.info-card {
  position: relative;
  margin: 0;
  padding: 1.65rem 0 1.65rem 28px;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 1.95rem;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--signal);
  transform: rotate(45deg);
}

.ic-head {
  font-size: 1rem;
}

.ic-sub,
.ic-body {
  color: var(--c-muted);
}

.lang-row {
  border-top: 1px solid var(--c-border);
}

.lang-item {
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
}

.lang-dots .d {
  border-radius: 0;
  transform: rotate(45deg) scale(0.8);
}

/* Competencies */
.comp-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  border: 1px solid var(--c-border);
  background: var(--c-border);
}

.comp-card {
  position: relative;
  grid-column: span 4;
  min-height: 340px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: clamp(28px, 3vw, 48px);
  background: rgba(9, 13, 19, 0.94);
}

.comp-card:nth-of-type(2),
.comp-card:nth-of-type(5) {
  grid-column: span 5;
}

.comp-card:nth-of-type(3),
.comp-card:nth-of-type(6) {
  grid-column: span 3;
}

.comp-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(239, 51, 64, 0.32);
  transform: rotate(45deg);
  transition: transform 600ms var(--ease-studio), background 600ms ease;
}

.comp-card:hover {
  z-index: 1;
  border: 0;
  transform: translateY(-7px);
  background: #0e141d;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.comp-card:hover::after {
  transform: rotate(45deg) scale(2.4);
  background: rgba(239, 51, 64, 0.07);
}

.comp-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 2.2rem;
  border: 1px solid rgba(239, 51, 64, 0.45);
  filter: grayscale(1);
  font-size: 1.4rem;
}

.comp-title {
  max-width: 270px;
  margin-bottom: 1.4rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.comp-list {
  gap: 0.52rem;
}

.comp-list li {
  color: #949ca7;
  font-size: 0.76rem;
  line-height: 1.45;
}

.comp-list li::before {
  color: var(--signal);
}

/* Employment */
.timeline {
  position: relative;
  gap: 0;
  margin-left: min(18vw, 250px);
  border-top: 1px solid var(--c-border);
}

.timeline::before {
  content: "CAREER / ACTIVE NETWORK";
  position: absolute;
  top: 0;
  right: calc(100% + 52px);
  width: min(17vw, 210px);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--ff-mono);
  font-size: 0.59rem;
  letter-spacing: 0.15em;
}

.tl-item {
  position: relative;
  margin: 0;
  padding: clamp(30px, 4vw, 58px) 18px clamp(30px, 4vw, 58px) clamp(70px, 8vw, 130px);
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
  transition: background 420ms ease, padding-left 420ms var(--ease-studio);
}

.tl-item::before {
  content: counter(timeline, decimal-leading-zero);
  position: absolute;
  top: clamp(35px, 4.5vw, 65px);
  left: 0;
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
}

.timeline {
  counter-reset: timeline;
}

.tl-item {
  counter-increment: timeline;
}

.tl-item:hover {
  padding-left: clamp(82px, 9vw, 148px);
  background: linear-gradient(90deg, rgba(239, 51, 64, 0.065), transparent 70%);
}

.tl-company {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 500;
}

.tl-role {
  color: var(--signal);
  font-family: var(--ff-mono);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
}

.tl-date,
.tl-loc {
  font-size: 0.67rem;
}

.active-pill {
  border-radius: 0;
  color: #fff;
  background: var(--signal);
}

/* Certificates */
.cert-grid {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 18px;
  background: var(--c-border);
  scrollbar-color: var(--signal) rgba(255, 255, 255, 0.06);
}

.cert-card {
  flex: 0 0 min(390px, 72vw);
  min-height: 290px;
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  padding: clamp(30px, 3vw, 46px);
  background: rgba(10, 14, 20, 0.97);
}

.cert-card:hover {
  border: 0;
  transform: translateY(-8px);
  background: #111822;
}

.cert-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(239, 51, 64, 0.5);
  filter: grayscale(1);
  font-size: 1.6rem;
}

.cert-name {
  font-size: 1.1rem;
  line-height: 1.35;
}

.cert-body {
  line-height: 1.6;
}

.cert-year,
.cert-view {
  color: var(--signal);
  font-family: var(--ff-mono);
}

/* Highlight stage */
.hl-wrap {
  min-height: min(760px, 78vh);
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 0;
  background: rgba(8, 11, 16, 0.78);
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.38);
}

.hl-grid {
  min-height: inherit;
  gap: 0;
}

.hl-meta,
.hl-body {
  padding: clamp(28px, 4vw, 58px);
}

.hl-meta {
  grid-column: span 2;
  border-right: 1px solid var(--c-border);
}

.hl-stage {
  grid-column: span 5;
  min-height: 580px;
  border-right: 1px solid var(--c-border);
}

.hl-body {
  grid-column: span 5;
}

.hl-plate {
  border-radius: 0;
}

.hl-vlabel {
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.hl-quote {
  font-size: clamp(1.65rem, 3.1vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hl-quote em {
  color: var(--signal);
}

.hl-tag {
  border-radius: 0;
  color: #a9b0ba;
  background: transparent;
  border: 1px solid var(--c-border);
}

.hl-btn {
  border-radius: 0;
}

.hl-btn.primary {
  color: #fff;
  border-color: var(--signal);
  background: var(--signal);
}

/* Experience table */
#experience-section {
  background: rgba(7, 9, 13, 0.62);
}

.cat-tabs {
  gap: 1px;
  border: 1px solid var(--c-border);
  background: var(--c-border);
}

.cat-tab {
  flex: 1;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: #0b1017;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.cat-tab.active {
  color: #fff;
  background: var(--signal);
}

.exp-toolbar {
  margin-top: 14px;
}

.exp-search,
.ff select,
.fg input,
.fg select,
.fg textarea,
.btn-add-ref,
.btn-reset-f {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(11, 15, 21, 0.92);
}

.exp-search:focus,
.ff select:focus,
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.btn-add-ref,
.btn-reset-f {
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}

.exp-filters {
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  background: var(--c-border);
}

.ff {
  padding: 10px;
  background: #0b1017;
}

.ff select {
  border: 0;
  background: #0b1017;
}

.tbl-wrap {
  border-color: var(--c-border);
  border-radius: 0;
  background: rgba(9, 13, 18, 0.94);
}

.ref-tbl th {
  background: #101720;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ref-tbl td {
  border-color: var(--c-line);
}

.ref-tbl,
.exp-count,
.days-badge,
.hl-count,
.tl-date {
  font-variant-numeric: tabular-nums;
}

.about-grid > *,
.contact-grid > *,
.comp-card,
.tl-item,
.cert-card,
.hl-body,
.info-val,
.cd-val {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ref-tbl tbody tr:hover {
  background: rgba(239, 51, 64, 0.06);
}

.sort-button {
  color: inherit;
}

/* Contact */
.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 10vw, 160px);
}

.contact-form-inner {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--c-border);
  background: rgba(9, 13, 19, 0.7);
}

.fg label {
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--ff-mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-details {
  align-self: center;
  border-top: 1px solid var(--c-border);
}

.cd-row {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--c-border);
}

.cd-ico {
  border-radius: 0;
  filter: grayscale(1);
  background: rgba(255, 255, 255, 0.045);
}

.cd-lbl {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--ff-mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

/* Footer and utility UI */
footer {
  border-color: var(--c-border);
  background: #06080b;
}

.footer-inner {
  width: var(--page);
  max-width: none;
  padding: 64px 0;
  text-align: left;
}

.footer-name {
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: -0.055em;
}

.footer-sub,
.footer-copy,
.footer-legal {
  font-family: var(--ff-mono);
}

#edit-fab {
  display: none !important;
}

.edit-entry-visible #edit-fab,
#edit-fab.active-mode {
  display: block !important;
}

.edit-section-btn {
  display: none;
}

.edit-mode .edit-section-btn {
  display: block;
}

#toast,
.modal-box,
#ue-box {
  border-radius: 2px;
}

/* Responsive composition */
@media (max-width: 1260px) {
  :root {
    --page: calc(100vw - 48px);
  }

  nav {
    padding-inline: 24px;
  }

  .nav-brand {
    min-width: 194px;
  }

  .nav-menu > li > a,
  .nav-menu > li > button {
    padding-inline: 0.46rem;
    font-size: 0.59rem;
  }

  .hero-inner {
    grid-template-columns: minmax(235px, 0.66fr) minmax(520px, 1.4fr);
    gap: 58px;
  }

  .hero-name {
    font-size: clamp(4.3rem, 7.8vw, 7rem);
  }
}

@media (max-width: 1080px) {
  :root {
    --page: calc(100vw - 40px);
    --nav-h: 68px;
  }

  .hamburger {
    display: flex;
    width: 42px;
    height: 42px;
    margin-left: 0;
    border: 1px solid var(--c-border);
    border-radius: 0;
  }

  .nav-menu {
    position: fixed;
    z-index: 510;
    inset: var(--nav-h) 0 0;
    display: none;
    width: 100%;
    height: calc(100dvh - var(--nav-h));
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px max(20px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--c-border);
    background: #07090d;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  body.nav-open { overflow: hidden; }

  .nav-menu > li > a,
  .nav-menu > li > button {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    border-bottom: 1px solid var(--c-line);
    font-size: 0.72rem;
  }

  .drop-menu {
    position: static;
    display: block !important;
    margin: 0 0 10px;
    box-shadow: none;
  }

  .hero-inner {
    grid-template-columns: minmax(220px, 0.62fr) minmax(440px, 1.38fr);
    gap: 44px;
  }

  .hero-name {
    font-size: clamp(3.75rem, 8vw, 5.8rem);
  }

  .hero-inner > .rv::before {
    margin-bottom: 26px;
  }

  .hero-contacts {
    margin-bottom: 1.4rem;
  }

  .stat-card {
    padding-inline: 0.72rem;
  }

  .comp-card,
  .comp-card:nth-of-type(2),
  .comp-card:nth-of-type(3),
  .comp-card:nth-of-type(5),
  .comp-card:nth-of-type(6) {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100vw - 32px);
  }

  nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 10px;
  }

  .nav-brand {
    min-width: 0;
  }

  .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .nav-name {
    font-size: 0.8rem;
  }

  .nav-subtitle {
    display: none;
  }

  .nav-cv-download {
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    font-size: 0;
  }

  .nav-cv-download .ncd-ico {
    font-size: 1rem;
  }

  .nav-cv-download span:not(.ncd-ico) {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    top: 110px;
    right: -42vw;
    width: 110vw;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 62px;
    padding: 72px 0 62px;
    text-align: left;
  }

  .hero-inner > .rv {
    grid-row: 1;
    max-width: 660px;
  }

  .hero-photo-col {
    grid-row: 2;
    width: min(84vw, 470px);
    justify-self: center;
  }

  .hero-name {
    font-size: clamp(4rem, 14vw, 7rem);
  }

  .hero-title {
    max-width: 540px;
  }

  .hero-contacts,
  .hero-cta {
    justify-content: flex-start;
  }

  .hero-stats {
    max-width: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sec-kicker,
  .sec-title,
  .sec-bar,
  .sec-desc {
    grid-column: 1;
    grid-row: auto;
  }

  .sec-kicker {
    margin-bottom: 12px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    display: none;
  }

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

  .hl-meta {
    grid-column: 1 / -1;
    min-height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--c-border);
  }

  .hl-stage,
  .hl-body {
    grid-column: span 1;
  }

  .hl-stage {
    min-height: 480px;
  }

  .hl-body {
    border-left: 0;
  }

  .cat-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100vw - 28px);
  }

  body {
    background-size: 44px 44px;
  }

  .nav-brand > div {
    display: none;
  }

  .hero-inner {
    gap: 54px;
    padding-top: 54px;
  }

  .hero-inner > .rv::before {
    margin-bottom: 24px;
    font-size: 0.52rem;
    letter-spacing: 0.15em;
  }

  .hero-name {
    max-width: 94vw;
    font-size: clamp(3.35rem, 18vw, 5.6rem);
    line-height: 0.82;
  }

  .hero-title {
    margin-top: 1.45rem;
    padding-left: 38px;
    font-size: 1rem;
  }

  .hero-title::before {
    width: 26px;
  }

  .hero-location {
    margin-left: 38px;
    font-size: 0.59rem;
  }

  .hero-contacts {
    gap: 5px;
  }

  .contact-chip {
    padding: 0.48rem 0.56rem;
    font-size: 0.57rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--c-border);
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .hero-photo-col {
    width: min(78vw, 360px);
  }

  .hero-photo-col::before {
    left: -20px;
  }

  .availability-badge {
    margin-right: -10px;
  }

  .hero-social {
    justify-content: flex-start;
  }

  .section,
  .exp-inner {
    padding-block: 92px;
  }

  .sec-title {
    font-size: clamp(2.65rem, 13vw, 4.15rem);
  }

  .about-grid,
  .contact-grid {
    gap: 54px;
  }

  .info-row {
    grid-template-columns: 22px 1fr;
  }

  .info-val {
    grid-column: 2;
  }

  .comp-card,
  .comp-card:nth-of-type(2),
  .comp-card:nth-of-type(3),
  .comp-card:nth-of-type(5),
  .comp-card:nth-of-type(6) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .tl-item,
  .tl-item:hover {
    padding: 30px 0 30px 44px;
  }

  .tl-top {
    flex-direction: column;
  }

  .tl-item::before {
    top: 36px;
  }

  .hl-wrap {
    min-height: 0;
  }

  .hl-grid {
    display: block;
  }

  .hl-stage {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--c-border);
  }

  .hl-body {
    min-height: 440px;
  }

  .hl-thumbs {
    flex-wrap: wrap;
  }

  .cat-tabs {
    grid-template-columns: 1fr;
  }

  .cat-tab {
    justify-content: flex-start;
  }

  .exp-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .exp-search,
  .btn-add-ref {
    grid-column: 1 / -1;
  }

  .exp-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-form-inner {
    padding: 24px 18px;
  }

  .footer-inner {
    padding-block: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .photo-frame {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  #kgrid,
  #three-field,
  #kgrid-vignette {
    display: none;
  }

  .photo-frame::before,
  .photo-frame::after,
  .comp-card::after {
    display: none;
  }
}
