
:root{
  --bg:#f4efe4;
  --text:#11110f;
  --muted:#69645b;
  --accent:#176b66;
  --accent-dark:#0f514d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
}
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:24px 5vw 20px;
}
.hero{
  text-align:center;
  padding:0 0 5.2vh;
}
.error-code{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(.15rem,.55vw,.5rem);
  min-height:76px;
  margin:0 0 .15rem;
}
.digit{
  font-size:clamp(3.3rem,5vw,5.2rem);
  font-weight:800;
  line-height:1;
}
.egg-button{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  width:clamp(58px,5.3vw,82px);
  height:clamp(70px,6.5vw,100px);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  -webkit-tap-highlight-color:transparent;
}
.egg-button:focus-visible{
  outline:2px solid var(--text);
  outline-offset:5px;
}
.egg-button img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .12s ease;
  user-select:none;
  pointer-events:none;
}
.egg-button:hover img{transform:scale(1.035)}
.egg-button:active img{transform:scale(.97)}
.hero h1{
  margin:.12rem 0;
  font-size:clamp(1.55rem,2.55vw,2.4rem);
  line-height:1.12;
  font-weight:700;
}
.hero .subtitle{
  margin:.18rem 0 0;
  font-size:clamp(1.2rem,2vw,1.9rem);
  line-height:1.15;
  font-style:italic;
  font-weight:400;
}
.egg-message{
  min-height:1.45em;
  margin:.65rem 0 0;
  font-size:clamp(.98rem,1.15vw,1.12rem);
  font-weight:700;
  opacity:0;
  transform:translateY(-3px);
  transition:opacity .15s ease, transform .15s ease;
}
.egg-message.visible{
  opacity:1;
  transform:translateY(0);
}
.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(34px,5vw,86px);
  width:100%;
  align-items:start;
}
section h2{
  margin:0 0 1.65rem;
  font-size:clamp(1.04rem,1.35vw,1.28rem);
  line-height:1.2;
  font-weight:800;
}
section ul{
  list-style:none;
  margin:0;
  padding:0;
}
section li{
  margin:0 0 .78rem;
  font-size:clamp(.96rem,1.08vw,1.06rem);
  line-height:1.38;
}
.closing{
  text-align:center;
  margin-top:4.2vh;
}
.tagline{
  margin:0;
  font-size:clamp(1.35rem,1.9vw,1.75rem);
  line-height:1.2;
  font-weight:800;
}
.contacts{
  margin:.9rem 0 0;
  font-size:clamp(1rem,1.18vw,1.12rem);
  line-height:1.4;
}
a{
  color:inherit;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
a:hover{opacity:.58}
.footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  padding-top:2.8vh;
  color:var(--muted);
  font-size:.82rem;
}
.lang{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:36px;
  text-decoration:none;
  transition:transform .15s ease, opacity .15s ease;
}
.lang img{
  display:block;
  width:48px;
  height:auto;
  box-shadow:0 0 0 1px rgba(0,0,0,.12);
}
.lang:hover{
  opacity:.8;
  transform:translateY(-2px);
}
@media (max-width:900px){
  .page{padding:22px 7vw 18px}
  .hero{padding-bottom:6vh}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 44px}
  .closing{margin-top:5vh}
}
@media (max-width:560px){
  .page{padding:20px 7vw 16px}
  .hero{padding-bottom:6vh}
  .error-code{min-height:68px}
  .egg-button{
    width:66px;
    height:82px;
  }
  .grid{grid-template-columns:1fr;gap:38px}
  section h2{margin-bottom:1rem}
  .closing{text-align:left;margin-top:5.5vh}
  .footer{padding-top:5vh}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}



.profile-page{background:var(--bg);color:var(--text)}
.profile-nav{position:sticky;top:0;z-index:5;background:rgba(244,239,228,.96);border-bottom:1px solid rgba(17,17,15,.14)}
.profile-nav-inner,.profile-shell,.profile-footer{width:min(1120px,88vw);margin:0 auto}
.profile-nav-inner{min-height:66px;display:flex;align-items:center;gap:24px}
.profile-brand{margin-right:auto;font-weight:800;text-decoration:none}
.profile-nav-links{display:flex;gap:20px;flex-wrap:wrap}
.profile-nav-links a{text-decoration:none;font-size:.92rem}
.profile-lang img{width:34px}
.profile-hero{padding:10vh 0 8vh;max-width:840px}
.profile-kicker{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.profile-hero h1{font-size:clamp(2.7rem,6vw,5.7rem);line-height:.98;margin:.8rem 0 1.5rem;letter-spacing:-.045em}
.profile-hero .lead{font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.42}
.profile-section{padding:8vh 0;border-top:1px solid rgba(17,17,15,.16)}
.profile-section h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:0 0 2.2rem}
.profile-two-col{display:grid;grid-template-columns:.8fr 1.2fr;gap:8vw}
.profile-copy{font-size:1.08rem;line-height:1.65}
.timeline{display:grid}
.role{display:grid;grid-template-columns:210px 1fr;gap:30px;padding:1.65rem 0;border-top:1px solid rgba(17,17,15,.12)}
.role:first-child{border-top:0;padding-top:0}
.role-company{font-weight:800}.role-company small{display:block;margin-top:.4rem;color:var(--muted);font-weight:400}
.role p{margin:0;line-height:1.55}
.method-grid,.outside-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.method-card,.outside-card{padding-top:1rem;border-top:3px solid var(--text)}
.method-card h3,.outside-card h3{margin:.3rem 0 .8rem}
.method-card p,.outside-card p{margin:0;line-height:1.55}
.profile-contact{display:grid;grid-template-columns:1fr 1fr;gap:8vw;align-items:end}
.profile-contact-big{font-size:clamp(1.8rem,4vw,3.5rem);font-weight:800;line-height:1.12;margin:0}
.profile-contact-links{display:grid;gap:.8rem;justify-items:start}
.back-404{margin-top:2.2rem;font-size:.88rem;color:var(--muted)}
.profile-footer{padding:24px 0 30px;border-top:1px solid rgba(17,17,15,.16);display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem}
@media(max-width:820px){
 .profile-nav-links{display:none}.profile-two-col,.profile-contact{grid-template-columns:1fr}
 .role{grid-template-columns:1fr;gap:10px}.method-grid,.outside-grid{grid-template-columns:1fr}
 .profile-hero{padding:8vh 0 6vh}.profile-section{padding:6vh 0}
}

/* Conventional route link under the 404 header */
.conventional-link{
  margin:.95rem 0 0;
  font-size:.95rem;
  font-weight:700;
}
.conventional-link a{
  color:#176b66;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.conventional-link a:hover{
  color:#0f514d;
  opacity:1;
}

.error-code{gap:clamp(.25rem,.7vw,.65rem)}
.egg-button{width:clamp(68px,5.9vw,92px);height:clamp(82px,7.2vw,112px)}
.egg-button img{transition:transform .16s ease,filter .16s ease}
.egg-button:hover img{transform:scale(1.045) rotate(-1deg);filter:drop-shadow(0 5px 7px rgba(0,0,0,.10))}
.egg-button:active img{transform:scale(.97) rotate(1deg)}
.conventional-link{margin:1rem 0 0;font-size:clamp(1.05rem,1.35vw,1.18rem);font-weight:700}
.conventional-link a{color:var(--accent);text-decoration-thickness:1.5px;text-underline-offset:4px}
.conventional-link a:hover{color:var(--accent-dark);opacity:1}
.egg-message{min-height:1.7em;margin:.8rem 0 0;opacity:0;transform:translateY(-4px);transition:opacity .16s ease,transform .16s ease}
.egg-message.visible{opacity:1;transform:translateY(0)}
.egg-oops{font-size:clamp(1rem,1.18vw,1.13rem);font-weight:700;line-height:1.3}
.not-404{margin-top:.18rem;font-size:clamp(.88rem,1vw,1rem);font-style:italic;color:var(--muted);line-height:1.3}
@media(max-width:560px){.egg-button{width:72px;height:88px}.conventional-link{font-size:1.05rem}}

/* --- Photo egg + tighter desktop vertical rhythm --- */
.hero{
  padding-bottom:3.7vh;
}

.egg-button{
  width:clamp(72px,6vw,96px);
  height:clamp(82px,7vw,108px);
}

.egg-button img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.grid{
  transform:translateY(-22px);
}

.closing{
  margin-top:3.2vh;
}

.footer{
  padding-top:2.1vh;
}

@media (max-width:900px){
  .hero{padding-bottom:5.5vh}
  .grid{transform:none}
  .closing{margin-top:5vh}
  .footer{padding-top:4vh}
}

@media (max-width:560px){
  .hero{padding-bottom:5.5vh}
  .egg-button{
    width:74px;
    height:88px;
  }
}

/* --- Privacy --- */
.footer-privacy{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
  opacity:.78;
}
.footer-privacy:hover{opacity:1}

.privacy-page{
  background:#f4efe4;
  color:#11110f;
}
.privacy-shell{
  width:min(860px,calc(100% - 40px));
  margin:0 auto;
  padding:56px 0 40px;
}
.privacy-header{
  padding-bottom:26px;
  border-bottom:1px solid rgba(17,17,15,.18);
  margin-bottom:34px;
}
.privacy-back{
  display:inline-block;
  color:#176b66;
  font-weight:700;
  margin-bottom:24px;
  text-decoration:none;
}
.privacy-back:hover{text-decoration:underline}
.privacy-header h1{
  margin:0;
  font-size:clamp(2.5rem,7vw,5rem);
  line-height:.95;
  letter-spacing:-.045em;
}
.privacy-updated{
  margin:14px 0 0;
  color:#69645b;
  font-size:.92rem;
}
.privacy-section{
  margin:0 0 30px;
}
.privacy-section h2{
  margin:0 0 10px;
  font-size:1.25rem;
}
.privacy-section p{
  margin:.55rem 0;
  line-height:1.65;
}
.privacy-section a{
  color:#176b66;
}
.privacy-footer{
  margin-top:44px;
  padding-top:22px;
  border-top:1px solid rgba(17,17,15,.18);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:.88rem;
  color:#69645b;
}
.privacy-footer a{
  color:#176b66;
}
@media(max-width:560px){
  .privacy-shell{
    width:min(100% - 28px,860px);
    padding-top:32px;
  }
  .privacy-footer{
    align-items:flex-start;
  }
}


/* --- Egg idle bobbing --- */
@keyframes eggBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.egg-button[aria-pressed="false"]{
  animation:eggBob 2.6s ease-in-out infinite;
}

.egg-button[aria-pressed="true"]{
  animation:none;
}

@media (prefers-reduced-motion: reduce){
  .egg-button{animation:none !important;}
}


/* --- Egg message final layout --- */
.egg-message{
  min-height:3.15em;
}
.egg-mainline{
  font-size:clamp(1rem,1.18vw,1.13rem);
  line-height:1.35;
  white-space:nowrap;
}
.egg-mainline strong{font-weight:700;}
.egg-mainline em{font-style:italic;font-weight:400;}
.not-404{
  margin-top:.18rem;
  font-size:clamp(.88rem,1vw,1rem);
  font-style:italic;
  color:var(--muted);
  line-height:1.3;
}
@media(max-width:560px){
  .egg-mainline{
    white-space:normal;
  }
}


@media (min-width: 901px){
  .grid li{
    margin-bottom: 0.34rem;
    line-height: 1.24;
  }
}


/* --- Experience dates --- */
.role-date{display:block;margin-top:.32rem;font-size:.78rem;line-height:1.2;color:var(--muted);font-weight:600;letter-spacing:.01em}

/* --- Real 404 page --- */
.real-404-page{min-height:100vh;background:#f4efe4;color:#11110f}
.real-404-shell{width:min(680px,calc(100% - 36px));min-height:100vh;margin:0 auto;padding:6vh 0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.real-404-code{font-size:clamp(4.5rem,12vw,8rem);font-weight:900;line-height:.85;letter-spacing:-.07em}
.real-404-shell h1{margin:1.15rem 0 1.4rem;font-size:clamp(1.9rem,5vw,3.35rem);line-height:1.05}
.real-404-image{display:block;width:min(390px,78vw);height:auto;margin:0 auto 1.3rem;filter:drop-shadow(0 10px 18px rgba(0,0,0,.10))}
.real-404-copy{margin:.1rem 0 1.1rem;font-size:clamp(1.05rem,2.2vw,1.28rem);font-style:italic}
.real-404-back{color:#176b66;font-weight:800;font-size:1.05rem;text-decoration-thickness:1.5px;text-underline-offset:4px}
.real-404-en{margin:1rem 0 0;font-size:.82rem;color:var(--muted)}
.real-404-en a{color:inherit}
@media(max-width:560px){.real-404-shell{padding:4vh 0}.real-404-image{width:min(330px,82vw)}}
