html { scroll-behavior: smooth; }

::selection { background: #123655; color: #FAFAF8; }

body {
  margin: 0;
  background: linear-gradient(160deg, #f2f6f8 0%, #eef4f7 20%, #e9f0f4 42%, #eef4f7 64%, #f2f6f8 82%, #f6f9fa 100%);
  background-attachment: fixed;
  color: #121212;
  font-family: 'Golos Text', 'Inter', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  --bg: #FAFAF8;
  --ink: #121212;
  --mute: #8A8A8A;
  --hair: rgba(18, 18, 18, 0.14);
  --invert-bg: #121212;
  --invert-ink: #FAFAF8;
  --invert-hair: rgba(250, 250, 248, 0.16);
  cursor: url('assets/cursor-lily.png') 19 24, auto;
}

/* film-grain noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes riseIn {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 92, 134, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(31, 92, 134, 0); }
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #123655, #4f8fb3, #9dc0d3);
  z-index: 30;
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 54, 85, 0.16) 60%, rgba(18, 54, 85, 0.3) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 4px clamp(16px, 4vw, 56px);
  padding-top: calc(4px + env(safe-area-inset-top));
  overflow-x: auto;
}
.brand {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FAFAF8;
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 0;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.7; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  flex-wrap: nowrap;
  margin-left: auto;
}
.site-nav { display: flex; gap: clamp(10px, 2vw, 28px); flex-wrap: nowrap; }
.nav-link {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FAFAF8;
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
  width: fit-content;
  white-space: nowrap;
}
.nav-link:hover { border-color: #FAFAF8; transform: translateY(-1px); }
.nav-link:active { opacity: 0.5; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: clamp(14px, 2.5vw, 28px);
  border-left: 1px solid var(--hair);
}
.lang-btn {
  background: none;
  border: none;
  padding: 14px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FAFAF8;
  opacity: 0.45;
}
.lang-btn:active { opacity: 0.5; }
.lang-btn.is-active { opacity: 1; text-decoration: underline; }
.lang-sep { font-size: 13px; color: rgba(250, 250, 248, 0.6); }

main { padding: 0 clamp(20px, 5vw, 56px); }

/* HERO */
.hero {
  position: relative;
  margin: 0 calc(-1 * clamp(20px, 5vw, 56px));
  padding: clamp(64px, 12vh, 140px) clamp(20px, 5vw, 56px) clamp(56px, 9vh, 96px);
  background: linear-gradient(120deg, #123655 0%, #1f5c86 18%, #4f8fb3 38%, #9dc0d3 58%, #d7e4ea 78%, #f2f6f8 100%);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 56px);
  align-items: flex-end;
  overflow: hidden;
}
.hero-content { flex: 1 1 480px; min-width: 280px; will-change: transform; }
.hero-name {
  margin: 0;
  font-size: clamp(52px, 10.5vw, 140px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-wrap: balance;
  color: #FAFAF8;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.hero-roles {
  margin: 30px 0 0 0;
  font-size: 17.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FAFAF8;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* SECTION LAYOUT */
.section {
  padding: clamp(48px, 8vh, 88px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  scroll-margin-top: 72px;
}
.section--tight { padding: clamp(32px, 5vh, 48px) 0; }
.section-side { flex: 0 1 220px; min-width: 160px; }
.section-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-label .num { color: var(--mute); margin-right: 12px; font-weight: 400; }
.section-body { flex: 1 1 420px; max-width: 640px; }
.body-text { font-size: 20px; line-height: 1.6; }
.body-text p { margin: 0 0 1.4em 0; }
.body-text p:last-child { margin-bottom: 0; }

.lede {
  margin: 0 0 0.9em 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
  font-family: 'Cormorant', Georgia, serif;
  text-transform: uppercase;
  color: #16405f;
}

/* IMAGE PLACEHOLDER SLOTS */
.img-slot {
  box-sizing: border-box;
  border: 1px dashed var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  padding: 16px;
}
.break-section { margin: 0 calc(-1 * clamp(20px, 5vw, 56px)); padding: 0; }
.break-img { width: 100%; height: clamp(320px, 58vh, 620px); }

.break-video-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 58vh, 620px);
  overflow: hidden;
  background: #0e2438;
}
.break-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-mute-btn {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 22, 34, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 250, 248, 0.28);
  color: #FAFAF8;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.video-mute-btn:hover { background: rgba(8, 22, 34, 0.75); border-color: rgba(250, 250, 248, 0.5); }
.video-mute-btn:active { opacity: 0.7; }
.mute-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  position: relative;
}
.mute-icon::before,
.mute-icon::after {
  content: '';
  position: absolute;
  inset: 0;
}
.mute-icon::before {
  background: currentColor;
  clip-path: polygon(0% 35%, 35% 35%, 60% 10%, 60% 90%, 35% 65%, 0% 65%);
}
.video-mute-btn[aria-pressed="true"] .mute-icon::after {
  border-top: 1.5px solid currentColor;
  top: 50%;
  left: 55%;
  right: -10%;
  transform: rotate(-45deg);
  transform-origin: left center;
}
/* ABOUT SLIDER */
.about-slider {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
  align-self: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.about-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.about-slider img.is-active { opacity: 1; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fafaf8;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
@media (hover: none) and (pointer: coarse) {
  .slider-arrow { display: none; }
}
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dots button.is-active {
  background: #fafaf8;
  transform: scale(1.35);
}

/* EXPERIENCE */
.exp-list {
  border-left: 1px solid var(--hair);
  padding-left: clamp(24px, 4vw, 36px);
}
.exp {
  position: relative;
  padding: 40px 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp:first-child { padding-top: 0; }
.exp:last-child { padding-bottom: 0; }
.exp:hover { transform: translateX(6px); }
.exp-dot {
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 36px) - 4px);
  top: 46px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f5c86;
  animation: dotPulse 3.6s ease-in-out infinite;
}
.exp:first-child .exp-dot,
.exp--dot-top .exp-dot { top: 6px; }
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.exp-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: opacity 0.25s ease;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.exp-title:hover { text-decoration: underline; opacity: 0.7; }
.exp-title:active { opacity: 0.5; }
.exp-title .arrow { font-size: 13px; opacity: 0.55; }
.exp-years {
  font-size: 17.5px;
  color: var(--mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.exp-company { margin: 4px 0 0 0; font-size: 17.5px; color: var(--mute); }
.exp-desc { margin: 16px 0 0 0; font-size: 20px; line-height: 1.6; }
.exp-clients { margin: 12px 0 0 0; font-size: 17.5px; color: var(--mute); }
.exp-tags {
  margin: 16px 0 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.9;
}
.exp-kp { margin: 20px 0 0 0; }
.exp-kp-label {
  margin: 0 0 8px 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.exp-kp ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
}
.exp-kp + .exp-tags { margin-top: 20px; }

/* LANGUAGES */
.lang-list { font-size: 20px; line-height: 1.9; }
.lang-list p { margin: 0; }

/* FOCUS (invert block) */
.focus {
  margin: clamp(32px, 5vh, 48px) calc(-1 * clamp(20px, 5vw, 56px)) 0;
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 56px);
  background: radial-gradient(ellipse 900px 600px at 88% 12%, rgba(79, 143, 179, 0.38), transparent 62%), linear-gradient(120deg, #0e2a40 0%, #123655 55%, #1b4a6d 100%);
  color: #FAFAF8;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  scroll-margin-top: 72px;
}
.focus .section-label { color: var(--invert-ink); }
.focus .section-label .num { color: rgba(250, 250, 248, 0.55); }
.focus .lede { color: inherit; margin-bottom: 0.7em; }
.focus .body-text { opacity: 0.82; }

/* BEYOND WORK */
.beyond-text { margin: 0 0 32px 0; }
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.mood-slot {
  width: 100%;
  height: clamp(120px, 14vw, 180px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mood-slot:hover { transform: scale(1.025); }

/* CONTACT */
.contact { padding: clamp(56px, 10vh, 112px) 0 clamp(32px, 5vh, 48px) 0; }
.contact-email {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-wrap: anywhere;
}
.contact-email:hover { border-color: var(--ink); letter-spacing: 0.05em; }
.contact-links { display: flex; flex-direction: column; gap: 8px; margin: 32px 0 0 0; }
.contact-link {
  font-size: 17.5px;
  color: var(--ink);
  text-decoration: none;
  align-self: flex-start;
  padding: 8px 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-link:hover { text-decoration: underline; transform: translateX(6px); }
.contact-link:active { opacity: 0.5; }
.copyright { margin: 56px 0 0 0; font-size: 13px; color: var(--mute); }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 22, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease both;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 80px) clamp(20px, 5vw, 56px);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  max-width: 760px;
  width: 100%;
  background: #0e2438;
  color: #FAFAF8;
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  margin-top: 24px;
  height: fit-content;
  animation: modalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #FAFAF8;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.modal-close:active { opacity: 0.5; }
.modal-years {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A8A8A;
}
.modal-title {
  margin: 12px 0 0 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  font-family: 'Cormorant', Georgia, serif;
  text-transform: uppercase;
}
.modal-company { margin: 8px 0 0 0; font-size: 17.5px; color: #8A8A8A; }
.modal-desc { margin: 28px 0 0 0; font-size: 20px; line-height: 1.6; max-width: 600px; }
.modal-clients { margin: 12px 0 0 0; font-size: 17.5px; color: #8A8A8A; max-width: 600px; }
.modal-extra { margin: 20px 0 0 0; font-size: 20px; line-height: 1.6; max-width: 600px; color: #8A8A8A; }
.modal-tags {
  margin: 24px 0 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A8A;
  line-height: 1.9;
}
.modal-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 36px 0 0 0;
}
.modal-media .img-slot,
.modal-video {
  border-color: rgba(250, 250, 248, 0.28);
  color: #8A8A8A;
}
.modal-media .img-slot { width: 100%; height: clamp(160px, 20vw, 240px); }
.modal-video {
  box-sizing: border-box;
  margin: 12px 0 0 0;
  border: 1px dashed rgba(250, 250, 248, 0.28);
  height: clamp(160px, 24vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
